From d0eb84ec514041ce4fa3d22cfff2668a77cb1e0e Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Tue, 8 Apr 2025 17:06:10 +0200 Subject: [PATCH] Do not crash if catchAll is not yet defined for a maildomain --- dashboard/src/components/CatchAllSettingsItem.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dashboard/src/components/CatchAllSettingsItem.vue b/dashboard/src/components/CatchAllSettingsItem.vue index 8351f5cc5..9d2438b75 100644 --- a/dashboard/src/components/CatchAllSettingsItem.vue +++ b/dashboard/src/components/CatchAllSettingsItem.vue @@ -59,8 +59,8 @@ onMounted(async () => { })); } - addresses.value = props.domainConfig.catchAll.slice(); - currentAddresses.value = props.domainConfig.catchAll.slice(); + addresses.value = props.domainConfig.catchAll ? props.domainConfig.catchAll.slice() : []; + currentAddresses.value = props.domainConfig.catchAll ? props.domainConfig.catchAll.slice() : []; busy.value = false; });