style: auto-fix lint and format
This commit is contained in:
1 parent
12bf6ee4be
commit
482e74f8c7
1 file changed
+5
-1
@@ -52,7 +52,11 @@ export default function SystemResources({ integrationIds, options }: WidgetCompo
|
||||
if (!firstItem) return;
|
||||
const idsChanged = prevIntegrationIds.current !== integrationIds;
|
||||
prevIntegrationIds.current = integrationIds;
|
||||
setItems((prev) => (idsChanged ? [toChartItem(firstItem.healthInfo)] : [...prev, toChartItem(firstItem.healthInfo)].slice(-MAX_QUEUE_SIZE)));
|
||||
setItems((prev) =>
|
||||
idsChanged
|
||||
? [toChartItem(firstItem.healthInfo)]
|
||||
: [...prev, toChartItem(firstItem.healthInfo)].slice(-MAX_QUEUE_SIZE),
|
||||
);
|
||||
}, [dataUpdatedAt, data, integrationIds]);
|
||||
|
||||
const showNetwork =
|
||||
|
||||
Reference in new issue
Block a user