mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-02-22 22:28:15 +00:00
Fix: TS2345 - Argument of type 'number' not assignable to parameter of type 'string'.
This commit is contained in:
parent
f701061a8a
commit
f1a7431d7f
@ -34,7 +34,7 @@ export default function PaginationForTable({
|
||||
event: MouseEvent<HTMLButtonElement> | null,
|
||||
newPage: number,
|
||||
) => {
|
||||
searchParams.set(`${paginationQueryParamPrefixToUse}page`, newPage + 1);
|
||||
searchParams.set(`${paginationQueryParamPrefixToUse}page`, String(newPage + 1));
|
||||
setSearchParams(searchParams);
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user