Skip to content

Commit

Permalink
make sure pages are ordered when changing pages tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
bellangerq committed Nov 14, 2024
1 parent 9c29955 commit 4ebf5be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion confiture-web-app/src/pages/audit/AuditGenerationPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ function updateCurrentPageId(i: number) {
auditStore.updateCurrentPageId(
i === 0
? auditStore.currentAudit?.transverseElementsPage.id ?? null
: auditStore.currentAudit?.pages.at(i - 1)?.id ?? null
: auditStore.currentAudit?.pages
? sortBy(auditStore.currentAudit.pages, "order").at(i - 1)?.id ?? null
: null
);
}
Expand Down

0 comments on commit 4ebf5be

Please sign in to comment.