Refactor visibleColumns in CourierInfo, HostInfo, and SubJobInfo components to remove redundant entries
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good

- 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.
This commit is contained in:
Tom Butcher 2026-08-19 19:05:29 +01:00
parent c69c4cf3dd
commit 2820b62295
3 changed files with 1 additions and 5 deletions

View File

@ -189,7 +189,6 @@ const CourierInfo = () => {
type='courierService'
masterFilter={{ courier: getModelByName('courier').prefix + ':' + courierId }}
visibleColumns={{
courier: false,
courier: false
}}
/>

View File

@ -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
}}
/>

View File

@ -177,8 +177,7 @@ const SubJobInfo = () => {
masterFilter={{ owner: getModelByName('subJob').prefix + ':' + subJobId }}
visibleColumns={{
owner: false,
'owner.type': false,
owner: false
'owner.type': false
}}
/>
)}