asdff
This commit is contained in:
@@ -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 => {
|
||||
@@ -177,12 +183,6 @@ const History = () => {
|
||||
)
|
||||
)].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 => {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user