From 12745d53749f39ff46cd9b32c6e1338d417e0bc8 Mon Sep 17 00:00:00 2001 From: Kevin Stone Date: Sun, 20 Apr 2025 15:14:16 -0700 Subject: [PATCH] Fix Longhorn still showing Total despite `total: false` The logic was falling to the final `return true` rather than breaking the logic chain when the node.id was matched to `"total"` and return false. --- src/components/widgets/longhorn/longhorn.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/widgets/longhorn/longhorn.jsx b/src/components/widgets/longhorn/longhorn.jsx index 235c77d058..db68cd7b86 100644 --- a/src/components/widgets/longhorn/longhorn.jsx +++ b/src/components/widgets/longhorn/longhorn.jsx @@ -32,8 +32,8 @@ export default function Longhorn({ options }) {
{data.nodes .filter((node) => { - if (node.id === "total" && total) { - return true; + if (node.id === "total") { + return total; } if (!nodes) { return false;