fiexed bug that pagination was set to 0
parent
a6defbb68c
commit
98b73cea72
|
@ -933,7 +933,10 @@ export function handleWebSocketMessage(
|
||||||
|
|
||||||
obj.Notifications = newArr;
|
obj.Notifications = newArr;
|
||||||
|
|
||||||
if (newArr.length === 0) {
|
if (
|
||||||
|
newArr.length === 0 &&
|
||||||
|
headerContext.paginationPageRef.current > 1
|
||||||
|
) {
|
||||||
const newPaginationPage = headerContext.paginationPageRef.current - 1;
|
const newPaginationPage = headerContext.paginationPageRef.current - 1;
|
||||||
|
|
||||||
headerContext.setPaginationPage(newPaginationPage);
|
headerContext.setPaginationPage(newPaginationPage);
|
||||||
|
|
Loading…
Reference in New Issue