mirror of
https://github.com/baptisteArno/typebot.io.git
synced 2026-06-13 21:02:56 +08:00
🎨 Fix format of ai generated code
This commit is contained in:
parent
b82a6da12b
commit
019e95bdda
@ -6,7 +6,9 @@ export const useApiTokens = ({
|
||||
}: {
|
||||
onError: (error: { message: string }) => void;
|
||||
}) => {
|
||||
const { data, error, refetch } = useQuery(trpc.user.listApiTokens.queryOptions());
|
||||
const { data, error, refetch } = useQuery(
|
||||
trpc.user.listApiTokens.queryOptions(),
|
||||
);
|
||||
if (error) onError(error);
|
||||
return {
|
||||
apiTokens: data?.apiTokens,
|
||||
|
||||
@ -42,4 +42,3 @@ export const createApiToken = authenticatedProcedure
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
@ -47,4 +47,3 @@ export const deleteApiToken = authenticatedProcedure
|
||||
});
|
||||
return { apiToken };
|
||||
});
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user