allow file names to change case of file extension
This commit is contained in:
parent
a267837fb7
commit
32d3f7a76c
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ export class FileNode extends React.Component {
|
||||||
if (oldFileExtension && !newFileExtension) {
|
if (oldFileExtension && !newFileExtension) {
|
||||||
this.props.updateFileName(this.props.id, this.originalFileName);
|
this.props.updateFileName(this.props.id, this.originalFileName);
|
||||||
}
|
}
|
||||||
if (oldFileExtension && newFileExtension && oldFileExtension[0] !== newFileExtension[0]) {
|
if (oldFileExtension && newFileExtension && oldFileExtension[0].toLowerCase() !== newFileExtension[0].toLowerCase()) {
|
||||||
this.props.updateFileName(this.props.id, this.originalFileName);
|
this.props.updateFileName(this.props.id, this.originalFileName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue