Skip to content

Commit

Permalink
Fix "... is not a function" error
Browse files Browse the repository at this point in the history
  • Loading branch information
AidanSun05 committed Feb 26, 2024
1 parent c03787f commit 27fddcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/FormNavMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ let target = $ref(0);
// If the index of the shown page changes, iterate through each page object and update their states
watchEffect(() => {
for (const [i, page] of props.pages.entries()) unref(page).setShown(i === shown);
for (const [i, page] of props.pages.entries()) unref(page).setShown?.(i === shown);
});
// If validation is successful, go to the target page
Expand Down

0 comments on commit 27fddcc

Please sign in to comment.