Skip to content

Commit

Permalink
fix already evaluated filter
Browse files Browse the repository at this point in the history
  • Loading branch information
bellangerq committed Sep 18, 2024
1 parent 58f3632 commit d9f72d8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions confiture-web-app/src/pages/audit/AuditGenerationPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ useWrappedFetch(async () => {
resultsStore.$reset();
await auditStore.fetchAuditIfNeeded(uniqueId.value);
await resultsStore.fetchResults(uniqueId.value);
auditStore.updateCurrentPageId(
auditStore.currentAudit?.pages.at(0)?.id ?? null
);
}, true);
const resultsStore = useResultsStore();
Expand Down Expand Up @@ -76,8 +73,11 @@ const topics = computed(() => {
const auditIsInProgress = computed(() => resultsStore.auditProgress < 1);
function updateCurrentPageId(i: number) {
const pageIdOrNull = auditStore.currentAudit?.pages.at(i)?.id ?? null;
auditStore.updateCurrentPageId(pageIdOrNull);
auditStore.updateCurrentPageId(
i === 0
? auditStore.currentAudit?.transverseElementsPage.id ?? null
: auditStore.currentAudit?.pages.at(i - 1)?.id ?? null
);
}
const {
Expand Down

0 comments on commit d9f72d8

Please sign in to comment.