Skip to content

Commit 6c59fca

Browse files
fixed
1 parent ec519e4 commit 6c59fca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/_components/markdown-editor.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ const Suggestions = ({
360360
onClose,
361361
}: {
362362
state: SuggestionState
363-
onSelect: (suggestionResult: string) => void
363+
onSelect: (suggestionResult: SuggestionResult) => void
364364
onClose: () => void
365365
}) => {
366366
const isMentionType = state.type === 'mention'
@@ -420,13 +420,13 @@ const SuggestionList = ({
420420
}: {
421421
suggestionList: SuggestionResult[]
422422
position: SuggestionPosition
423-
onSuggestionSelect: (suggestionResult: string) => void
423+
onSuggestionSelect: (suggestionResult: SuggestionResult) => void
424424
onClose: () => void
425425
}) => {
426426
const ref = useDetectClickOutside({ onTriggered: onClose })
427427

428428
const { moveHighlightedItem, selectHighlightedItem, useItem } = useItemList({
429-
onSelect: (item: SuggestionResult) => {
429+
onSelect: (item: { value: SuggestionResult }) => {
430430
onSuggestionSelect(item.value)
431431
},
432432
})

0 commit comments

Comments
 (0)