From 41accac4f739530671dd4ca09ad16ad3f2b1c76d Mon Sep 17 00:00:00 2001 From: Wvader <34067397+wvader@users.noreply.github.com> Date: Sun, 26 Dec 2021 17:42:16 +0000 Subject: [PATCH] c --- BlueWest.Frontend/src/routes/users.svelte | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/BlueWest.Frontend/src/routes/users.svelte b/BlueWest.Frontend/src/routes/users.svelte index f5bd9d2..566ecab 100644 --- a/BlueWest.Frontend/src/routes/users.svelte +++ b/BlueWest.Frontend/src/routes/users.svelte @@ -23,11 +23,15 @@ function removeUser(id ) { users = users.filter((u) => u.id !== id); } + + let isSafari; onMount(async () => { await GetUsers().then(res => { - users = res.users; - loaded = true; + users = res; + + if(users.length) + loaded = true; }) })