Skip to content

Commit eeb7e34

Browse files
authored
Fix project name blank issue (#1271)
* Fix project name blank issue * Change length check from !length to length === 0
1 parent 2744ea4 commit eeb7e34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/modules/IDE/components/Toolbar.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Toolbar extends React.Component {
3232
}
3333

3434
validateProjectName() {
35-
if (this.props.project.name === '') {
35+
if ((this.props.project.name.trim()).length === 0) {
3636
this.props.setProjectName(this.originalProjectName);
3737
}
3838
}

0 commit comments

Comments
 (0)