зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1913061 - [devtools] Fix crash when no editor and no next selected source r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D220086
This commit is contained in:
Родитель
bc586c24dc
Коммит
97d2a8252a
|
@ -141,7 +141,11 @@ class Editor extends PureComponent {
|
||||||
UNSAFE_componentWillReceiveProps(nextProps) {
|
UNSAFE_componentWillReceiveProps(nextProps) {
|
||||||
let { editor } = this.state;
|
let { editor } = this.state;
|
||||||
|
|
||||||
if (!editor && nextProps.selectedSource) {
|
if (!editor) {
|
||||||
|
// See Bug 1913061
|
||||||
|
if (!nextProps.selectedSource) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
editor = this.setupEditor();
|
editor = this.setupEditor();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче