Skip to content

Commit

Permalink
Update FileChangeToolbar.js
Browse files Browse the repository at this point in the history
temp fixing
  • Loading branch information
hjyssg committed Sep 11, 2021
1 parent 636642a commit e291056
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/client/subcomponent/FileChangeToolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,10 @@ export default class FileChangeToolbar extends Component {
handleRename(type, inputText) {
let { file, onNewPath } = this.props;

if(!_.isString(inputText)){
inputText = null;
}

const fileName = clientUtil.getBaseName(file);
const dirPath = clientUtil.getDir(file);

Expand Down

0 comments on commit e291056

Please sign in to comment.