mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
Merge pull request #1206 from johankwarnmarksymphony/sda-2992_2
fix: sda-2992 safe guard if user config is missing
This commit is contained in:
commit
c621018c22
@ -689,6 +689,12 @@ export class WindowHandler {
|
||||
}
|
||||
logger.info(`finished loading welcome screen.`);
|
||||
if (this.url.indexOf('welcome')) {
|
||||
const ssoValue =
|
||||
this.userConfig.url &&
|
||||
this.userConfig.url.indexOf('/login/sso/initsso') > -1
|
||||
? true
|
||||
: false;
|
||||
|
||||
this.mainWindow.webContents.send('page-load-welcome', {
|
||||
locale: i18n.getLocale(),
|
||||
resource: i18n.loadedResources,
|
||||
@ -706,7 +712,7 @@ export class WindowHandler {
|
||||
url: userConfigUrl || this.startUrl,
|
||||
message: '',
|
||||
urlValid: !!userConfigUrl,
|
||||
sso: this.userConfig.url.indexOf('/login/sso/initsso') > -1,
|
||||
sso: ssoValue,
|
||||
});
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user