We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4d5245 commit fe9d75bCopy full SHA for fe9d75b
client/modules/IDE/components/FileNode.jsx
@@ -49,7 +49,7 @@ export class FileNode extends React.Component {
49
}
50
51
get updatedName() {
52
- return this.state.updatedName || this.props.name;
+ return this.state.updatedName;
53
54
55
commitFileNameChange() {
@@ -92,7 +92,6 @@ export class FileNode extends React.Component {
92
const hasOnlyExtension = newFileExtension && newFileName === newFileExtension[0];
93
if (hasEmptyFilename || hasNoExtension || notSameExtension || hasOnlyExtension || hasExtensionIfFolder) {
94
this.setState({ updatedName: this.originalFileName });
95
- this.props.updateFileName(this.props.id, this.originalFileName);
96
} else this.commitFileNameChange();
97
98
0 commit comments