From 26276e036046a58e95b1a6e266609e0953f39ad0 Mon Sep 17 00:00:00 2001 From: DmitriyA Date: Mon, 7 Jul 2025 03:44:10 -0400 Subject: [PATCH] Metric editor fix --- .../SettingsComponents/MetricRangeEditor.jsx | 35 +++++++------------ 1 file changed, 12 insertions(+), 23 deletions(-) diff --git a/src/Components/Layout/SettingsComponents/MetricRangeEditor.jsx b/src/Components/Layout/SettingsComponents/MetricRangeEditor.jsx index d9135b6..54f03fc 100644 --- a/src/Components/Layout/SettingsComponents/MetricRangeEditor.jsx +++ b/src/Components/Layout/SettingsComponents/MetricRangeEditor.jsx @@ -269,31 +269,20 @@ const MetricRangeEditor = ({ onSave }) => { - - - {({ height, width }) => ( - - {({ index, style }) => ( - - - - )} - - )} - + + {filtered.map((metric, index) => ( + + ))} + {filtered.length === 0 && ( {filter ? 'Ничего не найдено' : 'Нет метрик для отображения'}