Bläddra i källkod

rename sync param

kaori 4 år sedan
förälder
incheckning
f4906be9ac
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      packages/app/src/stores/editor.tsx

+ 2 - 2
packages/app/src/stores/editor.tsx

@@ -102,9 +102,9 @@ export const usePageTagsForEditors = (pageId: Nullable<string>): SWRResponse<str
 
   return {
     ...swrResult,
-    sync: (newTags?: string[]): void => {
+    sync: (newTagsOnEdit?: string[]): void => {
       const { mutate } = swrResult;
-      mutate(newTags || tagsInfoData?.tags || [], false);
+      mutate(newTagsOnEdit || tagsInfoData?.tags || [], false);
     },
   };
 };