From 88365603c08764fa882299845648031d7aaceca4 Mon Sep 17 00:00:00 2001 From: Michael Sharpe Date: Fri, 29 Apr 2022 16:41:16 -0700 Subject: [PATCH] Fix event on errors --- client/src/workspaces/spells/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/workspaces/spells/index.tsx b/client/src/workspaces/spells/index.tsx index 886a0847d..2abf78ae6 100644 --- a/client/src/workspaces/spells/index.tsx +++ b/client/src/workspaces/spells/index.tsx @@ -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() })