mirror of https://github.com/portainer/portainer
fix(containers/datatable): disable autoreset expanded and selected rows [EE-2347] (#6563)
parent
9aeedf1bfa
commit
d962c300f9
|
@ -100,6 +100,10 @@ export function ContainersDatatable({
|
|||
isRowSelectable(row: Row<DockerContainer>) {
|
||||
return !row.original.IsPortainer;
|
||||
},
|
||||
autoResetSelectedRows: false,
|
||||
getRowId(originalRow: DockerContainer) {
|
||||
return originalRow.Id;
|
||||
},
|
||||
selectCheckboxComponent: Checkbox,
|
||||
},
|
||||
useFilters,
|
||||
|
|
|
@ -107,6 +107,9 @@ export function EdgeDevicesDatatable({
|
|||
},
|
||||
autoResetExpanded: false,
|
||||
autoResetSelectedRows: false,
|
||||
getRowId(originalRow: Environment) {
|
||||
return originalRow.Id.toString();
|
||||
},
|
||||
selectColumnWidth: 5,
|
||||
},
|
||||
useFilters,
|
||||
|
|
Loading…
Reference in New Issue