|
|
@@ -81,8 +81,9 @@ export const useSWRxCurrentPage = (
|
|
|
|
|
|
|
|
|
export const useSWRxTagsInfo = (pageId: Nullable<string>): SWRResponse<IPageTagsInfo | undefined, Error> => {
|
|
|
+
|
|
|
const endpoint = `/pages.getPageTag?pageId=${pageId}`;
|
|
|
- const key = pageId != null ? [endpoint, pageId] : null;
|
|
|
+ const key = [endpoint, pageId];
|
|
|
|
|
|
const fetcher = async(endpoint: string, pageId: Nullable<string>) => {
|
|
|
let tags: string[] = [];
|