Fix: Longhorn still showing Total despite total: false (#5200)

This commit is contained in:
Kevin Stone 2025-04-20 17:39:25 -07:00 committed by GitHub
parent 0a1bf3b2be
commit 1fe4f49771
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,8 +32,8 @@ export default function Longhorn({ options }) {
<div className="flex flex-row self-center flex-wrap justify-between"> <div className="flex flex-row self-center flex-wrap justify-between">
{data.nodes {data.nodes
.filter((node) => { .filter((node) => {
if (node.id === "total" && total) { if (node.id === "total") {
return true; return total;
} }
if (!nodes) { if (!nodes) {
return false; return false;