feat: init collectionid page

This commit is contained in:
swve 2023-05-26 16:52:53 +00:00
parent dea720c871
commit 27cd84127f
8 changed files with 126 additions and 2 deletions

View file

@ -78,7 +78,7 @@ export const swrFetcher = async (url: string, body: any, router?: AppRouterInsta
export const errorHandling = (res: any) => {
if (!res.ok) {
const error: any = new Error(`Error ${res.status}: ${res.statusText}`, {});
const error: any = new Error(`${res.status}: ${res.statusText}`, {});
error.status = res.status;
throw error;
}