Skip to content

Commit

Permalink
Do not throw an error when no default theme in functionalities
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud-morvan committed Sep 10, 2019
1 parent d317163 commit 5f6587b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions contribs/gmf/src/controllers/AbstractAppController.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,9 @@ export function AbstractAppController(config, map, $scope, $injector) {

if (evt.type !== 'ready') {
const themeName = this.permalink_.defaultThemeNameFromFunctionalities();
if (!themeName) {
throw new Error('Missing themeName');
if (themeName) {
this.gmfThemeManager.updateCurrentTheme(themeName, previousThemeName, true);
}
this.gmfThemeManager.updateCurrentTheme(themeName, previousThemeName, true);
}
this.setDefaultBackground_(null);
this.updateHasEditableLayers_();
Expand Down

0 comments on commit 5f6587b

Please sign in to comment.