fix custom domain clear (#488)

Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
Chirag Chhatrala 2024-07-17 16:48:50 +05:30 committed by GitHub
parent 3a658ab7e2
commit 4cf2ef1718
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -27,6 +27,7 @@
<select-input <select-input
v-if="customDomainAllowed" v-if="customDomainAllowed"
v-model="form.custom_domain" v-model="form.custom_domain"
:clearable="true"
:disabled="customDomainOptions.length <= 0" :disabled="customDomainOptions.length <= 0"
:options="customDomainOptions" :options="customDomainOptions"
name="type" name="type"
@ -111,6 +112,10 @@ export default {
this.form.seo_meta[keyname] = null this.form.seo_meta[keyname] = null
} }
}) })
if (this.form.custom_domain && !this.workspace.custom_domains.find((item) => { return item === this.form.custom_domain })) {
this.form.custom_domain = null
}
}, },
methods: {}, methods: {},
} }