소스 검색

remove unnecessary sharelink condition

kaori 3 년 전
부모
커밋
a4e8e4a780
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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;
     }