Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
adjust getLinkWithPicker params
Signed-off-by: Julien Veyssier <[email protected]>
  • Loading branch information
julien-nc committed Feb 3, 2023
commit e0ea3889dea6097fe1bd0e8bdddd1d785157de6c
4 changes: 2 additions & 2 deletions src/components/Suggestion/LinkPicker/suggestions.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { searchProvider, getLinkWithPicker } from '@nextcloud/vue-richtext'
export default () => createSuggestions({
listComponent: LinkPickerList,
command: ({ editor, range, props }) => {
getLinkWithPicker(props.provider)
getLinkWithPicker(props.providerId)
.then(link => {
editor
.chain()
Expand All @@ -45,7 +45,7 @@ export default () => createSuggestions({
return {
label: p.title,
icon: p.icon_url,
provider: p,
providerId: p.id,
}
})
},
Expand Down