From 690e8da4fe03258462072ed39cf8502c7dee0a6b Mon Sep 17 00:00:00 2001 From: Tim Hostetler <6970899+thostetler@users.noreply.github.com> Date: Mon, 31 Jan 2022 16:45:34 -0500 Subject: [PATCH] Fix transition error After previous update where equals operator was changed from `==` to `===`, an unintended bug was introduced. This updates the condition to remove this, and removes the offending getWidget call. --- src/js/apps/discovery/navigator.js | 2 -- src/js/components/application.js | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/js/apps/discovery/navigator.js b/src/js/apps/discovery/navigator.js index 31d25c9fd..14e24c4b3 100644 --- a/src/js/apps/discovery/navigator.js +++ b/src/js/apps/discovery/navigator.js @@ -438,8 +438,6 @@ define([ } defer.resolve(); }); - - app.getWidget('Library'); }); }); diff --git a/src/js/components/application.js b/src/js/components/application.js index 981380048..d2d522a2c 100644 --- a/src/js/components/application.js +++ b/src/js/components/application.js @@ -816,7 +816,7 @@ define([ } var thing = placeholder.get(name); - if (thing === null) { + if (typeof thing === 'undefined' || thing === null) { defer.reject(name + ' does not exist'); } else if (thing && thing.lazyLoad) { // load it