fix(datatable): image page not loading image list EE-5978 (#10070)

pull/10076/head
cmeng 1 year ago committed by GitHub
parent 77120abf33
commit 74eeb9da06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -110,7 +110,7 @@ export function Datatable<
initialState: { initialState: {
pagination: { pagination: {
pageSize: settings.pageSize, pageSize: settings.pageSize,
pageIndex: page, pageIndex: page || 0,
}, },
sorting: settings.sortBy ? [settings.sortBy] : [], sorting: settings.sortBy ? [settings.sortBy] : [],
globalFilter: settings.search, globalFilter: settings.search,
@ -163,6 +163,7 @@ export function Datatable<
renderTableActions={() => renderTableActions(selectedItems)} renderTableActions={() => renderTableActions(selectedItems)}
renderTableSettings={() => renderTableSettings(tableInstance)} renderTableSettings={() => renderTableSettings(tableInstance)}
/> />
<DatatableContent<D> <DatatableContent<D>
tableInstance={tableInstance} tableInstance={tableInstance}
renderRow={(row) => renderRow(row, highlightedItemId)} renderRow={(row) => renderRow(row, highlightedItemId)}

Loading…
Cancel
Save