Skip to content

Commit

Permalink
Don't assume default_url_params is set
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Mar 10, 2024
1 parent c8acfab commit 4a6cd94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/StandardApp.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class AppInitComponent extends React.Component {
this.props.showNotification("missingtheme", LocaleUtils.tr("app.missingtheme", params.t), NotificationType.WARN, true);
params.l = undefined;
}
const defaultTheme = Object.fromEntries(this.props.userInfos?.default_url_params.split("&").map(x => x.split("="))).t || themes.defaultTheme;
const defaultTheme = Object.fromEntries((this.props.userInfos?.default_url_params || "").split("&").map(x => x.split("="))).t || themes.defaultTheme;
theme = ThemeUtils.getThemeById(themes, defaultTheme);
params.t = defaultTheme;
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "qwc2",
"version": "2024.03.08-master",
"version": "2024.03.10-master",
"description": "QGIS Web Client 2 core",
"author": "Sourcepole AG",
"license": "BSD-2-Clause",
Expand Down

0 comments on commit 4a6cd94

Please sign in to comment.