Ensure admin store checklist is optional

This commit is contained in:
Andrew Kingston 2024-12-12 14:58:55 +00:00
parent 512d87ac36
commit 3dfdb740ac
No known key found for this signature in database
3 changed files with 3 additions and 3 deletions

View File

@ -49,7 +49,7 @@
const disabled = () => {
return {
SEND_EMAIL_SMTP: {
disabled: !$admin.checklist.smtp.checked,
disabled: !$admin.checklist?.smtp?.checked,
message: "Please configure SMTP",
},
COLLECT: {

View File

@ -9,7 +9,7 @@
$: useAccountPortal = cloud && !$admin.disableAccountPortal
onMount(() => {
if ($admin?.checklist?.adminUser.checked || useAccountPortal) {
if ($admin?.checklist?.adminUser?.checked || useAccountPortal) {
$redirect("../")
} else {
loaded = true

View File

@ -177,7 +177,7 @@
<Button
secondary
on:click={deleteSmtp}
disabled={!$admin.checklist.smtp.checked}
disabled={!$admin.checklist?.smtp?.checked}
>
Reset
</Button>