Parcourir la source

remove unnecessary sharelink condition

kaori il y a 3 ans
Parent
commit
a4e8e4a780
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      packages/app/src/stores/page.tsx

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

@@ -109,8 +109,8 @@ export const useSWRxTagsInfo = (pageId: Nullable<string>): SWRResponse<IPageTags
     }
 
     let tags: string[] = [];
-    // when the page exists or is a shared page
-    if (pageId != null && shareLinkId == null) {
+    // when the page exists
+    if (pageId != null) {
       const res = await apiGet<IPageTagsInfo>(endpoint, { pageId });
       tags = res?.tags;
     }