Преглед изворни кода

fix conditional branch of mutateTags

kaori пре 3 година
родитељ
комит
dcd33af86f
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      packages/app/src/components/Navbar/GrowiContextualSubNavigation.tsx

+ 1 - 1
packages/app/src/components/Navbar/GrowiContextualSubNavigation.tsx

@@ -183,7 +183,7 @@ const GrowiContextualSubNavigation = (props) => {
 
   const tagsUpdatedHandler = useCallback(async(newTags: string[]) => {
     // It will not be reflected in the DB until the page is refreshed
-    if (editorMode === EditorMode.Editor) {
+    if (!isViewMode) {
       return mutateEditorContainerTags(newTags, false);
     }