2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-16 12:05:53 +00:00

Only render categories in overview if there is data

Red #7025
This commit is contained in:
Matthias Mair
2024-04-16 21:15:20 +02:00
parent 5bf246c478
commit 590d70a8da

View File

@ -135,7 +135,7 @@ export default function PricingOverviewPanel({
max_value: pricing?.overall_max
}
].filter((entry) => {
return entry.min_value !== null || entry.max_value !== null;
return !(entry.min_value == null || entry.max_value == null);
});
}, [part, pricing]);