Skip to content

Commit

Permalink
fix: unexpected refetch of learn records
Browse files Browse the repository at this point in the history
  • Loading branch information
baboon-king committed May 30, 2024
1 parent cc8a000 commit 438c6ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/client/components/user-home/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ const isSelf = useUserStore().isSelf(() => user?.id);
const { learnRecord, year } = useLearnRecord({ userId: user?.id });
const onToggleYear = (value?: number) => {
if (!value) {
return;
}
year.value = value!;
};
</script>
Expand Down

0 comments on commit 438c6ae

Please sign in to comment.