status color fix

pull/44/head
DmitriyA 2025-06-04 08:37:45 -04:00
parent 09a6082917
commit 12e1ff08f5
1 changed files with 12 additions and 12 deletions

View File

@ -44,7 +44,7 @@ const PrometheusChart = ({ metricInfo, chartHeight = 560 }) => {
timestamp: item.timestamp,
value: parseFloat(item.value),
name: item.__name__ || metricName,
status: item.status?.toString() || '0',
status: parseInt(item.status) || 0,
device: item.device?.trim() || null,
source_id: item.source_id || null,
description: item.description || description