Skip to content

Commit

Permalink
B #6815: Fix vnet/datastore/host datatable (#3368)
Browse files Browse the repository at this point in the history
  • Loading branch information
jloboescalona2 authored Jan 20, 2025
1 parent b77806b commit 84abb7c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ const DatastoresTable = (props) => {
filter,
reSelectRows,
value,
RowComponent,
...rest
} = props ?? {}
rootProps['data-cy'] ??= DEFAULT_DATA_CY
Expand Down Expand Up @@ -212,7 +213,7 @@ const DatastoresTable = (props) => {
},
},
]
const { component, header } = WrapperRow(DatastoreRow)
const { component, header } = WrapperRow(RowComponent ?? DatastoreRow)

return (
<EnhancedTable
Expand Down
3 changes: 2 additions & 1 deletion src/fireedge/src/client/components/Tables/Hosts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ const HostsTable = (props) => {
filter,
reSelectRows,
value,
RowComponent,
...rest
} = props ?? {}
rootProps['data-cy'] ??= DEFAULT_DATA_CY
Expand Down Expand Up @@ -223,7 +224,7 @@ const HostsTable = (props) => {
},
},
]
const { component, header } = WrapperRow(HostRow)
const { component, header } = WrapperRow(RowComponent ?? HostRow)

return (
<EnhancedTable
Expand Down
3 changes: 2 additions & 1 deletion src/fireedge/src/client/components/Tables/VNetworks/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const VNetworksTable = (props) => {
filter,
reSelectRows,
value,
RowComponent,
...rest
} = props ?? {}
rootProps['data-cy'] ??= DEFAULT_DATA_CY
Expand Down Expand Up @@ -212,7 +213,7 @@ const VNetworksTable = (props) => {
},
]

const { component, header } = WrapperRow(VNetworkRow)
const { component, header } = WrapperRow(RowComponent ?? VNetworkRow)

return (
<EnhancedTable
Expand Down

0 comments on commit 84abb7c

Please sign in to comment.