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 <[email protected]>
  • Loading branch information
juliusknorr committed Apr 4, 2024
1 parent 2b205d5 commit a072ba2
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 a072ba2

Please sign in to comment.