ryoji-s 3 лет назад
Родитель
Сommit
ad2872d54b
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      packages/app/src/components/CreateTemplateModal.jsx

+ 1 - 2
packages/app/src/components/CreateTemplateModal.jsx

@@ -8,7 +8,6 @@ import urljoin from 'url-join';
 
 
 const CreateTemplateModal = (props) => {
 const CreateTemplateModal = (props) => {
   const { t } = useTranslation();
   const { t } = useTranslation();
-  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
   const { path } = props;
   const { path } = props;
 
 
   const parentPath = pathUtils.addTrailingSlash(path);
   const parentPath = pathUtils.addTrailingSlash(path);
@@ -65,7 +64,7 @@ const CreateTemplateModal = (props) => {
 
 
 CreateTemplateModal.propTypes = {
 CreateTemplateModal.propTypes = {
   t: PropTypes.func.isRequired, //  i18next
   t: PropTypes.func.isRequired, //  i18next
-  path: PropTypes.string.isRequired,
+  path: PropTypes.string,
   isOpen: PropTypes.bool.isRequired,
   isOpen: PropTypes.bool.isRequired,
   onClose: PropTypes.func.isRequired,
   onClose: PropTypes.func.isRequired,
 };
 };