From 4db4c123404f6fd9ee51bc665b9e7b2a60cb1461 Mon Sep 17 00:00:00 2001 From: Ahmed Awan Date: Thu, 22 Feb 2024 18:33:38 -0600 Subject: [PATCH] only show user's own histories in `MultipleView` --- client/src/components/History/Multiple/MultipleView.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/client/src/components/History/Multiple/MultipleView.vue b/client/src/components/History/Multiple/MultipleView.vue index 20b6e2773542..77955ccf8bca 100644 --- a/client/src/components/History/Multiple/MultipleView.vue +++ b/client/src/components/History/Multiple/MultipleView.vue @@ -38,6 +38,7 @@ const selectedHistories = computed(() => { } 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;