Fix config issue

This commit is contained in:
Erik Ziegler 2019-01-24 14:20:54 +01:00
parent 0501d4ce2a
commit fe68719eca

View File

@ -30,7 +30,7 @@ if (process.env.REACT_APP_CONFIG) {
}
let userManager;
if (config.oidc) {
if (config && config.oidc) {
const oidcClient = config.oidc[0];
const settings = {
@ -53,11 +53,10 @@ if (config.oidc) {
loadUser(store, userManager);
}
if (config.servers) {
if (config && config.servers) {
OHIF.utils.addServers(config.servers, store);
}
const defaultButtons = [
{
command: 'StackScroll',