diff --git a/ui-ngx/src/app/modules/home/pages/rulechain/rulechains-table-config.resolver.ts b/ui-ngx/src/app/modules/home/pages/rulechain/rulechains-table-config.resolver.ts index 473cc58fc5..80ba435453 100644 --- a/ui-ngx/src/app/modules/home/pages/rulechain/rulechains-table-config.resolver.ts +++ b/ui-ngx/src/app/modules/home/pages/rulechain/rulechains-table-config.resolver.ts @@ -493,8 +493,8 @@ export class RuleChainsTableConfigResolver implements Resolve = []; - this.ruleChainService.getDefaultEdgeRuleChains().pipe( + let defaultEdgeRuleChainIds: Array = []; + this.ruleChainService.getDefaultEdgeRuleChains().pipe( map(ruleChains => ruleChains.map(ruleChain => defaultEdgeRuleChainIds.push(ruleChain.id.id))) @@ -503,9 +503,9 @@ export class RuleChainsTableConfigResolver implements Resolve { response.data.map(ruleChain => ruleChain.isDefault = defaultEdgeRuleChainIds.some(id => ruleChain.id.id.includes(id))); - return response; - }) - ) + return response; + }) + ); } }