Skip to content

Commit 61451aa

Browse files
add missing var to dependency array
1 parent 917012d commit 61451aa

File tree

1 file changed

+1
-1
lines changed
  • packages/web/src/features/chat/components/chatBox

1 file changed

+1
-1
lines changed

packages/web/src/features/chat/components/chatBox/chatBox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ const ChatBoxComponent = ({
254254
}
255255
}
256256
}
257-
}, [suggestionMode, suggestions, onSubmit, index, onInsertSuggestion]);
257+
}, [suggestionMode, suggestions, onSubmit, editor, index, onInsertSuggestion]);
258258

259259
useEffect(() => {
260260
if (!range || !suggestionsBoxRef.current) {

0 commit comments

Comments
 (0)