Skip to content

Commit

Permalink
Fix transition error
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
thostetler committed Jan 31, 2022
1 parent 5481e1c commit 690e8da
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/js/apps/discovery/navigator.js
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,6 @@ define([
}
defer.resolve();
});

app.getWidget('Library');
});
});

Expand Down
2 changes: 1 addition & 1 deletion src/js/components/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 690e8da

Please sign in to comment.