Skip to content

Commit aa2b63b

Browse files
committed
fix: update openChatContainerHandler to accept optional data parameter
- Modified openChatContainerHandler to allow an optional data parameter, enhancing flexibility in chat container handling.
1 parent c9137da commit aa2b63b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/webapp/src/components/TipTap/tableOfContents/hooks/useOpenChatContainer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const useOpenChatContainer = () => {
1010
} = useStore((state) => state.settings)
1111

1212
const openChatContainerHandler = useCallback(
13-
(item: any, data: any) => {
13+
(item: any, data?: any) => {
1414
if (!editor) return
1515

1616
PubSub.publish(CHAT_OPEN, {

0 commit comments

Comments
 (0)