Bug 1533945 - Handle selectedFrame being unknown. r=jlast

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Logan Smyth 2019-03-09 02:01:38 +00:00
Родитель 5a6994330a
Коммит 9b838ec5a5
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -113,7 +113,11 @@ class Scopes extends PureComponent<Props, State> {
renderMapScopes() {
const { selectedFrame, shouldMapScopes } = this.props;
if (!features.mapScopes || isGeneratedId(selectedFrame.location.sourceId)) {
if (
!features.mapScopes ||
!selectedFrame ||
isGeneratedId(selectedFrame.location.sourceId)
) {
return null;
}