Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.globalConfigService.get().subscribe((config: {}) => {
this.globalConfig = config;
if (!this.globalConfig['es.date.format']) {
this.globalConfig['es.date.format'] = '-';
}
if (this.globalConfig['fieldValidations']) {
this.fieldValidations = JSON.stringify(
this.globalConfig['fieldValidations'],
null,
'\t'
);
}
});
}
this.globalConfigService.get().subscribe((config: {}) => {
this.globalConfig = config;
if (!this.globalConfig['es.date.format']) {
this.globalConfig['es.date.format'] = '-';
}
if (this.globalConfig['fieldValidations']) {
this.fieldValidations = JSON.stringify(
this.globalConfig['fieldValidations'],
null,
'\t'
);
}
});
}