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

Commit c48c585

Browse files
mmcotejasonLaster
authored andcommitted
Prevent the re-rendering of a conditional breakpoint panel (cbp) when opening a new cbp or removing or disabling an open cbp. (#5480)
1 parent 7595a08 commit c48c585

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/components/Editor/ConditionalPanel.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,13 @@ export class ConditionalPanel extends PureComponent<Props> {
104104
}
105105

106106
renderToWidget(props: Props) {
107+
if (this.cbPanel) {
108+
if (this.props.line && this.props.line == props.line) {
109+
return props.closeConditionalPanel();
110+
}
111+
this.clearConditionalPanel();
112+
}
113+
107114
const { selectedLocation, line, editor } = props;
108115
const sourceId = selectedLocation ? selectedLocation.sourceId : "";
109116

0 commit comments

Comments
 (0)