fix: loading state when creating template

This commit is contained in:
2024-12-03 11:40:12 +00:00
parent 9053632899
commit 9fd88fd8d5

View File

@@ -59,6 +59,8 @@ function useCreateTemplate() {
description: string;
baseTemplate: string;
}): Promise<Template | null> => {
setIsCreating(true);
try {
const res = await fetchApi(`/templates/${name}`, {
method: "PUT",