Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Commit b6d94b9

Browse files
committed
fix leak
1 parent bf2285d commit b6d94b9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/SecondaryPanes/BreakpointItem.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ class BreakpointItem extends Component<Props> {
6565

6666
setupEditor() {
6767
const { breakpoint } = this.props;
68+
if (this.editor) {
69+
return;
70+
}
71+
6872
this.editor = createEditor(breakpoint.text);
6973

7074
// disables the default search shortcuts

0 commit comments

Comments
 (0)