@openmfp/portal-ui-lib 0.193.12 → 0.194.1
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.
|
@@ -1673,7 +1673,10 @@ class LuigiNodesService {
|
|
|
1673
1673
|
async retrieveChildrenByEntity() {
|
|
1674
1674
|
try {
|
|
1675
1675
|
const portalConfig = await this.configService.getPortalConfig();
|
|
1676
|
-
const serverLuigiNodes = portalConfig.providers.flatMap((p) => p.nodes)
|
|
1676
|
+
const serverLuigiNodes = portalConfig.providers.flatMap((p) => p.nodes.map((node) => ({
|
|
1677
|
+
...node,
|
|
1678
|
+
context: { ...node.context, ...p.nodeContext },
|
|
1679
|
+
})));
|
|
1677
1680
|
const luigiNodes = await this.localConfigurationService.replaceServerNodesWithLocalOnes(serverLuigiNodes, ['global', 'main', 'home']);
|
|
1678
1681
|
return this.getChildrenByEntity(luigiNodes);
|
|
1679
1682
|
}
|
|
@@ -1691,7 +1694,10 @@ class LuigiNodesService {
|
|
|
1691
1694
|
throw new Error('Entity type is required');
|
|
1692
1695
|
}
|
|
1693
1696
|
configsForEntity = await this.configService.getEntityConfig(entityType, additionalContext);
|
|
1694
|
-
return configsForEntity.providers.flatMap((p) => p.nodes)
|
|
1697
|
+
return configsForEntity.providers.flatMap((p) => p.nodes.map((node) => ({
|
|
1698
|
+
...node,
|
|
1699
|
+
context: { ...node.context, ...p.nodeContext },
|
|
1700
|
+
})));
|
|
1695
1701
|
}
|
|
1696
1702
|
catch (e) {
|
|
1697
1703
|
errorCode = e.status || 500;
|