Skip to content

Commit 1a05dda

Browse files
authored
Fix inability to rename paths (#192)
1 parent 1670347 commit 1a05dda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/sidebar/PathSelector.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ class PathSelectorOption extends Component<OptionProps, OptionState> {
9494
let selected =
9595
this.props.uuid == this.context.model.document.pathlist.activePathUUID;
9696
let name = this.getPath().name;
97-
if (name != this.state.name) {
98-
this.setState({ name });
97+
if (name != this.state.name && !this.state.renaming) {
98+
this.state.name = name;
9999
}
100100
return (
101101
<span

0 commit comments

Comments
 (0)