Skip to content

Commit

Permalink
fix: Update heading extractor initially
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliusknorr committed Apr 4, 2024
1 parent bc8e77c commit 344e433
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nodes/Heading/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const onUpdate = debounce(({ editor }) => {
// Only run if editor still exists (prevent dangling debounced extractHeadings function)
extractHeadings(editor)
}
}, 900)
}, 900, { immediate: true })

const Heading = TipTapHeading.extend({
addAttributes() {
Expand Down

0 comments on commit 344e433

Please sign in to comment.