|
@@ -27,12 +27,9 @@ export const useSWRxPageTags = (): SWRResponse<IListTagNamesByPage | undefined,
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
let tags: string[] = [];
|
|
let tags: string[] = [];
|
|
|
// when the page exists or is a shared page
|
|
// when the page exists or is a shared page
|
|
|
if (tagsInfoData != null && pageId != null && shareLinkId == null) {
|
|
if (tagsInfoData != null && pageId != null && shareLinkId == null) {
|
|
|
- // const res = await apiGet<IResGetPageTags>(endpoint, { pageId });
|
|
|
|
|
- // tags = res?.tags;
|
|
|
|
|
tags = tagsInfoData.tags;
|
|
tags = tagsInfoData.tags;
|
|
|
}
|
|
}
|
|
|
// when the page does not exist
|
|
// when the page does not exist
|
|
@@ -42,6 +39,8 @@ export const useSWRxPageTags = (): SWRResponse<IListTagNamesByPage | undefined,
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ console.log('tags_useSWRxPageTags', tags);
|
|
|
|
|
+
|
|
|
return tags;
|
|
return tags;
|
|
|
};
|
|
};
|
|
|
|
|
|