diff --git a/client/modules/IDE/components/NewFileForm.jsx b/client/modules/IDE/components/NewFileForm.jsx index 2cc93566ae..9620e321dc 100644 --- a/client/modules/IDE/components/NewFileForm.jsx +++ b/client/modules/IDE/components/NewFileForm.jsx @@ -55,11 +55,15 @@ function NewFileForm() { )} - + + {() => ( + + )} + - {touched.name && errors.name && ( + {touched.submitButton && errors.name && ( {errors.name} )} diff --git a/client/modules/IDE/components/NewFolderForm.jsx b/client/modules/IDE/components/NewFolderForm.jsx index bc305b8b18..b0935397ff 100644 --- a/client/modules/IDE/components/NewFolderForm.jsx +++ b/client/modules/IDE/components/NewFolderForm.jsx @@ -52,11 +52,15 @@ function NewFolderForm() { )} - + + {() => ( + + )} + - {touched.name && errors.name && ( + {touched.submitButton && errors.name && ( {errors.name} )}