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
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:
parent
c69c4cf3dd
commit
2820b62295
@ -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
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@ -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
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@ -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
|
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user