fix: loading state when creating template
This commit is contained in:
@@ -59,6 +59,8 @@ function useCreateTemplate() {
|
||||
description: string;
|
||||
baseTemplate: string;
|
||||
}): Promise<Template | null> => {
|
||||
setIsCreating(true);
|
||||
|
||||
try {
|
||||
const res = await fetchApi(`/templates/${name}`, {
|
||||
method: "PUT",
|
||||
|
Reference in New Issue
Block a user