This commit is contained in:
Jake Kasper
2025-08-28 08:40:54 -05:00
parent 288131693a
commit 2ea40e1bdd

View File

@@ -125,6 +125,12 @@ const History = () => {
}
};
// Get application type from first product in productDetails
const getApplicationType = (app) => {
if (!app.productDetails || app.productDetails.length === 0) return null;
return app.productDetails[0].type; // granular or liquid
};
// Get unique values for filter options - dynamically filter based on other applied filters
const getFilteredApplicationsForOptions = () => {
return completedApplications.filter(app => {
@@ -176,12 +182,6 @@ const History = () => {
app.productDetails ? app.productDetails.map(p => p.name) : []
)
)].filter(Boolean).sort();
// Get application type from first product in productDetails
const getApplicationType = (app) => {
if (!app.productDetails || app.productDetails.length === 0) return null;
return app.productDetails[0].type; // granular or liquid
};
// Filter applications based on all filters
const filteredApplications = completedApplications.filter(app => {