Explorar o código

fix(web): pick deleted user (#1237)

Jason Rasmussen %!s(int64=2) %!d(string=hai) anos
pai
achega
9edbff0ec0

+ 2 - 1
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) => {