Shun Miyazawa 4 년 전
부모
커밋
1f6c7805e6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/app/src/stores/tag.tsx

+ 1 - 1
packages/app/src/stores/tag.tsx

@@ -9,6 +9,6 @@ import { apiGet } from '../client/util/apiv1-client';
 export const useSWRxTagsList = (limit?: number, offset?: number): SWRResponse<ITagsListApiv1Result, Error> => {
   return useSWRImmutable(
     ['/tags.list', limit, offset],
-    (endpoint, limit, offset) => apiGet(endpoint, { limit, offset }).then(result => result as ITagsListApiv1Result),
+    (endpoint, limit, offset) => apiGet(endpoint, { limit, offset }).then((result: ITagsListApiv1Result) => result),
   );
 };