File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 14
14
"callbackForm" : " Callback Form" ,
15
15
"resetChat" : " Reset/Start Chat" ,
16
16
"homePage.nameAndDescriptionAlert" : " Please enter a name and description" ,
17
+ "homePage.nameRequiredAlert" : " Please enter a name for the project" ,
17
18
"homePage.deleteProjectError" : " Error in deleting project, Please try again later!" ,
18
19
"homePage.dslFileUploadMessage" : " If you would like to clone, you can upload an existing program (DSL)" ,
19
20
"editorPage.devModeHeader" : " Dev Mode" ,
Original file line number Diff line number Diff line change @@ -210,8 +210,9 @@ export const HomePage: React.FunctionComponent = () => {
210
210
const copyTemplate = ( copyTemplateValues : any ) => {
211
211
try {
212
212
if ( token ) {
213
- if ( copyTemplateValues . name . trim ( ) === '' || copyTemplateValues . description . trim ( ) === '' ) {
214
- alert ( t ( 'homePage.nameAndDescriptionAlert' ) ) ;
213
+ if ( copyTemplateValues . name . trim ( ) === '' ) {
214
+ alert ( t ( 'homePage.nameRequiredAlert' ) ) ;
215
+ return ;
215
216
}
216
217
if ( disabled ) return
217
218
setDisabled ( true )
You can’t perform that action at this time.
0 commit comments