From 98f4a38683b67c83db122ce7154bcf767ff5e356 Mon Sep 17 00:00:00 2001 From: jx163 Date: Thu, 2 Oct 2025 11:54:02 +1300 Subject: [PATCH] fix lint issues --- src/components/Widgets/GlCompactMetrics.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Widgets/GlCompactMetrics.vue b/src/components/Widgets/GlCompactMetrics.vue index 0c8517eb..8030d44e 100644 --- a/src/components/Widgets/GlCompactMetrics.vue +++ b/src/components/Widgets/GlCompactMetrics.vue @@ -325,7 +325,7 @@ export default { }, formatBytes(bytes) { - if (!bytes || Number.isNaN(bytes)) return '0 B'; + if (bytes == null || isNaN(bytes)) return '0 B'; const k = 1024; const sizes = ['B', 'KB', 'MB', 'GB', 'TB']; const i = Math.floor(Math.log(bytes) / Math.log(k));