Skip to content

Commit

Permalink
Use autodetected default theme if defaultTheme is null or empty in co…
Browse files Browse the repository at this point in the history
…nfig
  • Loading branch information
manisandro committed Dec 4, 2024
1 parent c25242d commit 9da475e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config_generator/map_viewer_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def qwc2_themes(self, assets_dir):
self.default_theme = self.theme_ids[0]

themes['defaultTheme'] = themes_config.get(
'defaultTheme', self.default_theme)
'defaultTheme', self.default_theme) or self.default_theme
themes['externalLayers'] = themes_config_themes.get(
'externalLayers', []
)
Expand Down

0 comments on commit 9da475e

Please sign in to comment.