Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
loadContentMetadata(config: ExtensionConfig): any {
const elements = this.loader.getElements(
config,
'features.content-metadata-presets'
);
let presets = {};
presets = this.filterDisabled(mergeObjects(presets, ...elements));
try {
this.appConfig.config['content-metadata'] = { presets };
} catch (error) {
console.error(
error,
'- could not change content-metadata from app.config -'
);
}
return { presets };
}