From 03260fc20b5d562ea7c8cadf3d233cd8cc70f797 Mon Sep 17 00:00:00 2001 From: David Walsh Date: Fri, 27 Sep 2019 17:14:44 +0000 Subject: [PATCH] Bug 1584576 - Prevent error in inline preview action r=jlast Differential Revision: https://phabricator.services.mozilla.com/D47457 --HG-- extra : moz-landing-system : lando --- devtools/client/debugger/src/actions/pause/inlinePreview.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/devtools/client/debugger/src/actions/pause/inlinePreview.js b/devtools/client/debugger/src/actions/pause/inlinePreview.js index 15df185acce6..c3b575ba7118 100644 --- a/devtools/client/debugger/src/actions/pause/inlinePreview.js +++ b/devtools/client/debugger/src/actions/pause/inlinePreview.js @@ -206,7 +206,11 @@ function getExpressionNameAndValue( ); displayValue = property && property.contents.value; displayName += `.${meta.property}`; - } else if (displayValue && displayValue.preview) { + } else if ( + displayValue && + displayValue.preview && + displayValue.preview.ownProperties + ) { const { ownProperties } = displayValue.preview; Object.keys(ownProperties).forEach(prop => { if (prop === meta.property) {