Skip to content

Commit

Permalink
only show user's own histories in MultipleView
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedhamidawan committed Feb 23, 2024
1 parent 8da9be6 commit 4db4c12
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/src/components/History/Multiple/MultipleView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const selectedHistories = computed<PinnedHistory[]>(() => {
} else {
// get the latest four histories
return [...histories.value]
.filter((h) => !h.user_id || (!currentUser.value?.isAnonymous && h.user_id === currentUser.value?.id))
.sort((a, b) => {
if (a.update_time < b.update_time) {
return 1;
Expand Down

0 comments on commit 4db4c12

Please sign in to comment.