From 217afee8a05ad298f016b304b0ada180e3231b03 Mon Sep 17 00:00:00 2001 From: Jake Fulmine Date: Sun, 27 Nov 2022 19:49:07 +0100 Subject: [PATCH] fix(dashboard): fix public profile list crashing --- .../src/components/list/ListControl.svelte | 20 ++++++++++++------- dashboard/src/routes/Dash/Profile.svelte | 2 +- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/dashboard/src/components/list/ListControl.svelte b/dashboard/src/components/list/ListControl.svelte index 01a78143..bb1f7780 100644 --- a/dashboard/src/components/list/ListControl.svelte +++ b/dashboard/src/components/list/ListControl.svelte @@ -81,13 +81,19 @@ function resetPage() { - -
-
- -
Control {pageOptions.type} list -
- + + + +
+ +
Control {pageOptions.type} list + + {#if !pageOptions.isPublic} + + + + {/if} +
diff --git a/dashboard/src/routes/Dash/Profile.svelte b/dashboard/src/routes/Dash/Profile.svelte index cc08cf1c..1caf184f 100644 --- a/dashboard/src/routes/Dash/Profile.svelte +++ b/dashboard/src/routes/Dash/Profile.svelte @@ -107,7 +107,7 @@ You are currently viewing a system. navigateTo(e.detail, listView)}> - + navigateTo("members", e.detail)} bind:otherList={groupList} bind:lists={memberList} bind:pageOptions={memberListPageOptions} bind:options={memberListOptions} />