diff --git a/client/src/components/production-list-save-config-button/production-list-save-config-button.component.jsx b/client/src/components/production-list-save-config-button/production-list-save-config-button.component.jsx index 0f7381c84..246177367 100644 --- a/client/src/components/production-list-save-config-button/production-list-save-config-button.component.jsx +++ b/client/src/components/production-list-save-config-button/production-list-save-config-button.component.jsx @@ -66,12 +66,7 @@ export function ProductionListSaveConfigButton({ }; const popMenu = (
-
+ { + if (a.useremail !== currentUser.email) return a; + return { ...a, default_prod_list_view: value }; + }); + }, + }, + }); + }, }); } }; @@ -85,13 +98,18 @@ export function ProductionListTable({ setState(bodyshop.production_config[0].columns.tableState); }; + const assoc = bodyshop.associations.find( + (a) => a.useremail === currentUser.email + ); + const defaultView = assoc && assoc.default_prod_list_view; return (