Yuki Takei 1 rok temu
rodzic
commit
778c586cbe
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      apps/app/src/components/CreateTemplateModal.tsx

+ 1 - 1
apps/app/src/components/CreateTemplateModal.tsx

@@ -65,7 +65,7 @@ export const CreateTemplateModal: React.FC<CreateTemplateModalProps> = ({
     catch (err) {
       toastError(t('toaster.create_failed', { target: path }));
     }
-  }, [createTemplate, path, t]);
+  }, [createTemplate, onClose, path, t]);
 
   const parentPath = pathUtils.addTrailingSlash(path);