From 9edbff0ec05a3c12c28f2aa0ca1c81eaa13da062 Mon Sep 17 00:00:00 2001 From: Jason Rasmussen Date: Fri, 30 Dec 2022 22:30:48 -0500 Subject: [PATCH] fix(web): pick deleted user (#1237) --- web/src/lib/components/album-page/user-selection-modal.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/src/lib/components/album-page/user-selection-modal.svelte b/web/src/lib/components/album-page/user-selection-modal.svelte index 9a8d2405e4..990b2251da 100644 --- a/web/src/lib/components/album-page/user-selection-modal.svelte +++ b/web/src/lib/components/album-page/user-selection-modal.svelte @@ -13,7 +13,8 @@ onMount(async () => { const { data } = await api.userApi.getAllUsers(false); - users = data; + // remove soft deleted users + users = data.filter((user) => !user.deletedAt); // Remove the existed shared users from the album sharedUsersInAlbum.forEach((sharedUser) => {