From 74eeb9da06bf7ee425da26e53be09c9c3132a8c7 Mon Sep 17 00:00:00 2001 From: cmeng Date: Thu, 17 Aug 2023 09:53:25 +1200 Subject: [PATCH] fix(datatable): image page not loading image list EE-5978 (#10070) --- app/react/components/datatables/Datatable.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/react/components/datatables/Datatable.tsx b/app/react/components/datatables/Datatable.tsx index 3b4728978..3fc883f2a 100644 --- a/app/react/components/datatables/Datatable.tsx +++ b/app/react/components/datatables/Datatable.tsx @@ -110,7 +110,7 @@ export function Datatable< initialState: { pagination: { pageSize: settings.pageSize, - pageIndex: page, + pageIndex: page || 0, }, sorting: settings.sortBy ? [settings.sortBy] : [], globalFilter: settings.search, @@ -163,6 +163,7 @@ export function Datatable< renderTableActions={() => renderTableActions(selectedItems)} renderTableSettings={() => renderTableSettings(tableInstance)} /> + tableInstance={tableInstance} renderRow={(row) => renderRow(row, highlightedItemId)}