Consolidate way of passing items to ItemListLayout (#4850)

This commit is contained in:
Janne Savolainen authored and GitHub committed 2022-02-11 09:32:14 -05:00
1 parent e626cc91d4
commit 668ac58cb3
5 files changed
+13 -7

No files matched your search

@@ -86,7 +86,9 @@ class NonInjectedPortForwards extends React.Component<Props & Dependencies> {
<ItemListLayout
isConfigurable
tableId="port_forwards"
className="PortForwards" store={this.props.portForwardStore}
className="PortForwards"
store={this.props.portForwardStore}
getItems={() => this.props.portForwardStore.items}
sortingCallbacks={{
[columnId.name]: item => item.getName(),
[columnId.namespace]: item => item.getNs(),