From c23371ef298c30bf5fad8794aa4dcfcd4baac039 Mon Sep 17 00:00:00 2001 From: chris <kokosias@yahoo.gr> Date: Fri, 1 Apr 2022 00:37:15 +0300 Subject: [PATCH] fix state --- editors/demo/src/Editors.js | 2 +- .../MatchingService/components/MatchingContainerComponent.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/editors/demo/src/Editors.js b/editors/demo/src/Editors.js index 1e839e3d3..166168897 100644 --- a/editors/demo/src/Editors.js +++ b/editors/demo/src/Editors.js @@ -70,7 +70,7 @@ const Editors = () => { case 'ncbi': return <NCBI />; default: - return <HHMI />; + return <Editoria />; } }; diff --git a/wax-prosemirror-services/src/MatchingService/components/MatchingContainerComponent.js b/wax-prosemirror-services/src/MatchingService/components/MatchingContainerComponent.js index f6d53cd6c..e2dc16247 100644 --- a/wax-prosemirror-services/src/MatchingService/components/MatchingContainerComponent.js +++ b/wax-prosemirror-services/src/MatchingService/components/MatchingContainerComponent.js @@ -152,7 +152,7 @@ export default ({ node, view, getPos }) => { ); } }); - }, [options, context]); + }, [options, JSON.stringify(context.pmViews.main.state)]); const addOption = () => { if (addOptionRef.current.value.trim() === '') return; -- GitLab