From 2820b622955d7bc2b04e9e6914563546f428454e Mon Sep 17 00:00:00 2001 From: Tom Butcher Date: Wed, 19 Aug 2026 19:05:29 +0100 Subject: [PATCH] Refactor visibleColumns in CourierInfo, HostInfo, and SubJobInfo components to remove redundant entries - Removed duplicate 'courier', 'host', and 'owner' properties from visibleColumns in CourierInfo, HostInfo, and SubJobInfo components for cleaner code. - Enhanced code readability and maintainability by streamlining the visibleColumns structure. --- src/components/Dashboard/Management/Couriers/CourierInfo.jsx | 1 - src/components/Dashboard/Management/Hosts/HostInfo.jsx | 2 -- src/components/Dashboard/Production/SubJobs/SubJobInfo.jsx | 3 +-- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/components/Dashboard/Management/Couriers/CourierInfo.jsx b/src/components/Dashboard/Management/Couriers/CourierInfo.jsx index 7e9434e2..3d0efac9 100644 --- a/src/components/Dashboard/Management/Couriers/CourierInfo.jsx +++ b/src/components/Dashboard/Management/Couriers/CourierInfo.jsx @@ -189,7 +189,6 @@ const CourierInfo = () => { type='courierService' masterFilter={{ courier: getModelByName('courier').prefix + ':' + courierId }} visibleColumns={{ - courier: false, courier: false }} /> diff --git a/src/components/Dashboard/Management/Hosts/HostInfo.jsx b/src/components/Dashboard/Management/Hosts/HostInfo.jsx index b04f01e5..39bce0f6 100644 --- a/src/components/Dashboard/Management/Hosts/HostInfo.jsx +++ b/src/components/Dashboard/Management/Hosts/HostInfo.jsx @@ -210,7 +210,6 @@ const HostInfo = () => { type='printer' masterFilter={{ host: getModelByName('host').prefix + ':' + hostId }} visibleColumns={{ - host: false, host: false }} /> @@ -232,7 +231,6 @@ const HostInfo = () => { type='documentPrinter' masterFilter={{ host: getModelByName('host').prefix + ':' + hostId }} visibleColumns={{ - host: false, host: false }} /> diff --git a/src/components/Dashboard/Production/SubJobs/SubJobInfo.jsx b/src/components/Dashboard/Production/SubJobs/SubJobInfo.jsx index a7ca0842..0189a948 100644 --- a/src/components/Dashboard/Production/SubJobs/SubJobInfo.jsx +++ b/src/components/Dashboard/Production/SubJobs/SubJobInfo.jsx @@ -177,8 +177,7 @@ const SubJobInfo = () => { masterFilter={{ owner: getModelByName('subJob').prefix + ':' + subJobId }} visibleColumns={{ owner: false, - 'owner.type': false, - owner: false + 'owner.type': false }} /> )}