Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Commit

Permalink
Fix event on errors
Browse files Browse the repository at this point in the history
  • Loading branch information
parzival418 committed Apr 29, 2022
1 parent c1c6d2a commit 8836560
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/workspaces/spells/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ const Workspace = ({ tab, tabs, pubSub }) => {
if (!editor?.on) return

const unsubscribe = editor.on(
'save nodecreated noderemoved connectioncreated connectionremoved nodetranslated commentremoved commentcreated addcomment removecomment editcomment connectionpath',
// Comment events: commentremoved commentcreated addcomment removecomment editcomment connectionpath
'save nodecreated noderemoved connectioncreated connectionremoved nodetranslated',
debounce(async data => {
if (tab.type === 'spell' && spellRef.current) {
publish(events.$SAVE_SPELL_DIFF(tab.id), { chain: serialize() })
Expand Down

0 comments on commit 8836560

Please sign in to comment.