Parcourir la source

BugFix for TagLabels

Yuki Takei il y a 4 ans
Parent
commit
cd65ee56e5
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      packages/app/src/components/Page/TagLabels.jsx

+ 1 - 1
packages/app/src/components/Page/TagLabels.jsx

@@ -53,7 +53,7 @@ class TagLabels extends React.Component {
     const { pageId } = pageContainer.state;
 
     // It will not be reflected in the DB until the page is refreshed
-    if (editorMode === 'edit') {
+    if (editorMode === EditorMode.Editor) {
       return editorContainer.setState({ tags: newTags });
     }