From 26fa63aec636844f7cca2b59196a0f2b2611f317 Mon Sep 17 00:00:00 2001 From: Sascha Eisner Date: Thu, 28 Sep 2023 07:16:39 +0200 Subject: [PATCH] Update multirangeslider.tsx Fix multiple added labels if they change and not the same as on init --- src/components/multirangeslider.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/multirangeslider.tsx b/src/components/multirangeslider.tsx index 5658b3f..48658c5 100644 --- a/src/components/multirangeslider.tsx +++ b/src/components/multirangeslider.tsx @@ -431,9 +431,9 @@ const MultiRangeSlider = (props: Props, ref: React.ForwardedRef) )} {label && (
- {labels.map((label) => { + {labels.map((label, index) => { return ( -
+
{label}
);