reset page back to 1 when applying a filter.
This commit is contained in:
parent
b7ec540b3c
commit
52d1df5c0f
|
@ -737,12 +737,14 @@ export default function ProcessInstanceListTable({
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
setProcessInitiatorNotFoundErrorText('');
|
setProcessInitiatorNotFoundErrorText('');
|
||||||
|
|
||||||
const { page, perPage } = getPageInfoFromSearchParams(
|
// eslint-disable-next-line prefer-const
|
||||||
|
let { page, perPage } = getPageInfoFromSearchParams(
|
||||||
searchParams,
|
searchParams,
|
||||||
undefined,
|
undefined,
|
||||||
undefined,
|
undefined,
|
||||||
paginationQueryParamPrefix
|
paginationQueryParamPrefix
|
||||||
);
|
);
|
||||||
|
page = 1; // Reset page back to 0
|
||||||
|
|
||||||
const newReportMetadata = getNewReportMetadataBasedOnPageWidgets();
|
const newReportMetadata = getNewReportMetadataBasedOnPageWidgets();
|
||||||
setListHasBeenFiltered(true);
|
setListHasBeenFiltered(true);
|
||||||
|
|
Loading…
Reference in New Issue