فهرست منبع

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