Fix config validation
This commit is contained in:
parent
0b48e09e4a
commit
b9807b3a7b
@ -107,8 +107,8 @@ export const getServerDefinitions = (config: LiveAtlasGlobalConfig): Map<string,
|
||||
throw new ConfigurationError(`Configuration object is missing`);
|
||||
}
|
||||
|
||||
if (typeof config !== 'undefined') {
|
||||
return validateLiveAtlasConfiguration(config.servers || {});
|
||||
if (typeof config.servers !== 'undefined') {
|
||||
return validateLiveAtlasConfiguration(config.servers);
|
||||
}
|
||||
|
||||
return validateDynmapConfiguration(window.config?.url || null);
|
||||
|
Loading…
Reference in New Issue
Block a user