Bug 1585720 - Avoid CodeMirror operation when there are no column breakpoints r=jlast

Differential Revision: https://phabricator.services.mozilla.com/D47942

--HG--
extra : moz-landing-system : lando
This commit is contained in:
David Walsh 2019-10-02 19:26:31 +00:00
parent 4c101d240f
commit 3abfc57f0c

View File

@ -42,7 +42,11 @@ class ColumnBreakpoints extends Component<Props> {
breakpointActions,
} = this.props;
if (!selectedSource || selectedSource.isBlackBoxed) {
if (
!selectedSource ||
selectedSource.isBlackBoxed ||
columnBreakpoints.length === 0
) {
return null;
}