From 9b55ca329cb8c35883a8774abd9be376d75a39ad Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Mon, 30 Sep 2024 11:21:58 +0200 Subject: [PATCH 001/224] improve allowed domains change handling --- frontend/src/lib/components/OAuthSetting.svelte | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/components/OAuthSetting.svelte b/frontend/src/lib/components/OAuthSetting.svelte index 9e67ef787c..4e84f796ce 100644 --- a/frontend/src/lib/components/OAuthSetting.svelte +++ b/frontend/src/lib/components/OAuthSetting.svelte @@ -75,14 +75,19 @@ bind:value={domain} on:keyup={(e) => { if (domain == '') { - value['allowed_domains'] = value['allowed_domains'].filter((d) => d != domain) + value['allowed_domains'] = value['allowed_domains']?.filter( + (d) => d != domain + ) } }} />