Просмотр исходного кода

fix conditional branch of mutateTags

kaori 3 лет назад
Родитель
Сommit
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);
     }