diff --git a/dashboard/src/routes/Dash/Profile.svelte b/dashboard/src/routes/Dash/Profile.svelte
index c5e6f2bc..26fe0d5d 100644
--- a/dashboard/src/routes/Dash/Profile.svelte
+++ b/dashboard/src/routes/Dash/Profile.svelte
@@ -69,6 +69,8 @@
// fetch both lists, and store them inside a context store
async function fetchLists() {
+ errs.members = null;
+ errs.groups = null;
loading.members = true;
loading.groups = true;
@@ -80,6 +82,7 @@
} catch (error) {
console.error(error);
errs.members = error.message;
+ loading.members = false;
}
try {
@@ -90,6 +93,7 @@
} catch (error) {
console.error(error);
errs.groups = error.message;
+ loading.groups = false;
}
}
@@ -132,10 +136,10 @@
- navigateTo("members", e.detail)} bind:listLoading={loading.members} pageOptions={memberListPageOptions} options={memberListOptions} {systemId} />
+ navigateTo("members", e.detail)} bind:listLoading={loading.members} pageOptions={memberListPageOptions} options={memberListOptions} {systemId} err={errs.members} />
- navigateTo("groups", e.detail)} bind:listLoading={loading.groups} pageOptions={groupListPageOptions} options={groupListOptions} {systemId} />
+ navigateTo("groups", e.detail)} bind:listLoading={loading.groups} pageOptions={groupListPageOptions} options={groupListOptions} {systemId} err={errs.groups} />
{/if}