Explorar o código

fix conditional branch of mutateTags

kaori %!s(int64=3) %!d(string=hai) anos
pai
achega
dcd33af86f

+ 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);
     }