Skip to content

Commit 95d421f

Browse files
fix node bug
1 parent 09889da commit 95d421f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/tiptap/tiptap-editor.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ export const TipTapEditor = ({
121121
}
122122
});
123123

124+
if (mentionNodes.length === 0) return;
125+
124126
previousState.current = editor.state;
125127

126128
prevMentionNodes.forEach((node: any) => {
@@ -129,7 +131,7 @@ export const TipTapEditor = ({
129131
}
130132
});
131133
},
132-
[removeBacklink, doc],
134+
[removeBacklink, doc.id],
133135
);
134136

135137
/**

0 commit comments

Comments
 (0)