From bb0bbfbff0af530fdaa275b73ccd09f6fdab32b8 Mon Sep 17 00:00:00 2001 From: Jonathan Olson Date: Tue, 29 Oct 2019 10:28:08 -0600 Subject: [PATCH] Temporary workaround for null _screenSummaryContent or others in ScreenView setChildren --- js/ScreenView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ScreenView.js b/js/ScreenView.js index c67901b7..a468f518 100644 --- a/js/ScreenView.js +++ b/js/ScreenView.js @@ -108,7 +108,7 @@ define( require => { */ setChildren( children ) { - [ this._screenSummaryContent, this.playAreaNode, this.controlAreaNode ].forEach( pdomNode => { + [ this._screenSummaryContent, this.playAreaNode, this.controlAreaNode ].filter( _.identity ).forEach( pdomNode => { if ( children.indexOf( pdomNode ) < 0 ) { children.push( pdomNode ); }