mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-11 01:43:23 +01:00
Add additional debug info.
This commit is contained in:
parent
8907452bc5
commit
de78c882cc
@ -35,7 +35,11 @@ class EditorOptionsBuilder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static loadMapId(): number {
|
static loadMapId(): number {
|
||||||
return !AppConfig.isDevelopEnv() ? global.mapId : 11;
|
const result = !AppConfig.isDevelopEnv() ? global.mapId : 11;
|
||||||
|
if (result === undefined) {
|
||||||
|
throw Error(`Could not resolve mapId. Map Id: global.mapId: ${result} , global.mapTitle: ${global.mapTitle}, global.lockSession: ${global.lockSession}`);
|
||||||
|
}
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
export default EditorOptionsBuilder;
|
export default EditorOptionsBuilder;
|
||||||
|
Loading…
Reference in New Issue
Block a user