@alfresco/aca-shared 8.1.0-32256430308 → 8.1.0-32763389905
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1823,9 +1823,12 @@ class AppExtensionService {
|
|
|
1823
1823
|
if (!elements.length) {
|
|
1824
1824
|
return null;
|
|
1825
1825
|
}
|
|
1826
|
-
let presets = {};
|
|
1827
|
-
presets = this.filterDisabled(mergeObjects(presets, ...elements));
|
|
1828
1826
|
const metadata = this.appConfig.config['content-metadata'] || {};
|
|
1827
|
+
let presets = mergeObjects({}, ...elements);
|
|
1828
|
+
if (metadata.presets) {
|
|
1829
|
+
presets = mergeObjects(presets, metadata.presets);
|
|
1830
|
+
}
|
|
1831
|
+
presets = this.filterDisabled(presets);
|
|
1829
1832
|
metadata.presets = presets;
|
|
1830
1833
|
this.appConfig.config['content-metadata'] = metadata;
|
|
1831
1834
|
return { presets };
|