Skip to content

Commit

Permalink
Fix loading
Browse files Browse the repository at this point in the history
  • Loading branch information
gafetinov committed Dec 13, 2023
1 parent ac8fe6f commit 76899eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export const TasksPageContainer = ({
if (isNotPagingOnBackend && request.offset !== newRequest.offset) {
const offset = newRequest.offset || 0;
setVisibleTasks(results.taskMetas.slice(offset, offset + maxTaskCountOnPage));
setLoading(false);
} else {
loadData(
isNotPagingOnBackend ? { ...newRequest, offset: 0 } : { ...newRequest, count: maxTaskCountOnPage }
Expand Down Expand Up @@ -179,6 +180,7 @@ export const TasksPageContainer = ({
pathname + searchRequestMapping.stringify({ ...request, ...overrides });

const goToPage = (page: number) => {
setLoading(true);
navigate(getQuery({ offset: (page - 1) * maxTaskCountOnPage }));
};

Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "3.1-prerelease5",
"version": "3.1-prerelease6",
"assemblyVersion": {
"precision": "build"
},
Expand Down

0 comments on commit 76899eb

Please sign in to comment.