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' type='courierService'
masterFilter={{ courier: getModelByName('courier').prefix + ':' + courierId }} masterFilter={{ courier: getModelByName('courier').prefix + ':' + courierId }}
visibleColumns={{ visibleColumns={{
courier: false,
courier: false courier: false
}} }}
/> />

View File

@ -210,7 +210,6 @@ const HostInfo = () => {
type='printer' type='printer'
masterFilter={{ host: getModelByName('host').prefix + ':' + hostId }} masterFilter={{ host: getModelByName('host').prefix + ':' + hostId }}
visibleColumns={{ visibleColumns={{
host: false,
host: false host: false
}} }}
/> />
@ -232,7 +231,6 @@ const HostInfo = () => {
type='documentPrinter' type='documentPrinter'
masterFilter={{ host: getModelByName('host').prefix + ':' + hostId }} masterFilter={{ host: getModelByName('host').prefix + ':' + hostId }}
visibleColumns={{ visibleColumns={{
host: false,
host: false host: false
}} }}
/> />

View File

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