Sfoglia il codice sorgente

BugFix for TagLabels

Yuki Takei 4 anni fa
parent
commit
cd65ee56e5
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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 });
     }