Shun Miyazawa 4 лет назад
Родитель
Сommit
172e2795be
1 измененных файлов с 4 добавлено и 2 удалено
  1. 4 2
      packages/app/src/stores/tag.tsx

+ 4 - 2
packages/app/src/stores/tag.tsx

@@ -7,6 +7,8 @@ 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));
+  return useSWRImmutable(
+    ['/tags.list', limit, offset],
+    (endpoint, limit, offset) => apiGet(endpoint, { limit, offset }).then(result => result as ITagsListApiv1Result),
+  );
 };