From 58d6d072be3460f64f760c186a9335e9c436b461 Mon Sep 17 00:00:00 2001 From: Pritish Budhiraja <1805317@kiit.ac.in> Date: Fri, 15 Dec 2023 12:38:20 +0530 Subject: [PATCH 1/5] refactor: key missing prop --- src/components/ButtonGroupIp.res | 4 +- src/components/Chip.res | 46 ++++++++----------- src/components/CollapsableTableRow.res | 5 +- .../RoutingRevamp/AddRuleGateway.res | 2 +- .../RoutingRevamp/AdvancedRoutingUIUtils.res | 1 + 5 files changed, 28 insertions(+), 30 deletions(-) diff --git a/src/components/ButtonGroupIp.res b/src/components/ButtonGroupIp.res index 58fd16ccb..cf0953ab8 100644 --- a/src/components/ButtonGroupIp.res +++ b/src/components/ButtonGroupIp.res @@ -13,10 +13,11 @@ let make = ( let buttons = options - ->Js.Array2.map(op => { + ->Array.mapWithIndex((op, i) => { let active = input.value->LogicUtils.getStringFromJson("") === op.value if isSeparate {