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
|
// Get unique values for filter options - dynamically filter based on other applied filters
|
||||||
const getFilteredApplicationsForOptions = () => {
|
const getFilteredApplicationsForOptions = () => {
|
||||||
return completedApplications.filter(app => {
|
return completedApplications.filter(app => {
|
||||||
@@ -176,12 +182,6 @@ const History = () => {
|
|||||||
app.productDetails ? app.productDetails.map(p => p.name) : []
|
app.productDetails ? app.productDetails.map(p => p.name) : []
|
||||||
)
|
)
|
||||||
)].filter(Boolean).sort();
|
)].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
|
// Filter applications based on all filters
|
||||||
const filteredApplications = completedApplications.filter(app => {
|
const filteredApplications = completedApplications.filter(app => {
|
||||||
|
|||||||
Reference in New Issue
Block a user