File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ export default defineComponent({
2727 key : 'editor' ,
2828 } ,
2929 userData : { } ,
30+ currentResourceId : this . resourceId ,
3031 }
3132 } ,
3233 methods : {
@@ -40,8 +41,8 @@ export default defineComponent({
4041 const { data } = await axios . get ( generateOcsUrl ( 'core/autocomplete/get' ) , {
4142 params : {
4243 search,
43- itemType : 'files' ,
44- itemId : this . resourceId ,
44+ itemType : this . resourceType ,
45+ itemId : this . currentResourceId ,
4546 sorter : 'commenters|share-recipients' ,
4647 limit : loadState ( 'comments' , 'maxAutoCompleteResults' ) ,
4748 } ,
Original file line number Diff line number Diff line change @@ -110,7 +110,6 @@ export default {
110110 loading: false ,
111111 done: false ,
112112
113- currentResourceId: this .resourceId ,
114113 offset: 0 ,
115114 comments: [],
116115
You can’t perform that action at this time.
0 commit comments