From bbb0b63c1d6e37f8e7b97df73569d9e4351caddf Mon Sep 17 00:00:00 2001 From: Vasilis Xouris Date: Fri, 21 Feb 2025 11:34:20 -0800 Subject: [PATCH] fix build error --- bin/stacks/routing-dashboard-stack.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/bin/stacks/routing-dashboard-stack.ts b/bin/stacks/routing-dashboard-stack.ts index 521b957ae..ad44770c4 100644 --- a/bin/stacks/routing-dashboard-stack.ts +++ b/bin/stacks/routing-dashboard-stack.ts @@ -105,12 +105,14 @@ export class RoutingDashboardStack extends cdk.NestedStack { width: 24, type: 'metric', properties: { - metrics: chains.map((chainId) => [ - { - expression: `FILL(mreqc${chainId}, 0)`, - label: `Requests on ${ID_TO_NETWORK_NAME(chainId)}`, - id: `e1c${chainId}`, - }, + metrics: _.flatMap(chains, (chainId) => [ + [ + { + expression: `FILL(mreqc${chainId}, 0)`, + label: `Requests on ${ID_TO_NETWORK_NAME(chainId)}`, + id: `e1c${chainId}`, + }, + ], [ NAMESPACE, `GET_QUOTE_REQUESTED_CHAINID: ${chainId}`,