fixed an issue where requests to the api createDomain were being sent with the field networkdomain as an empty string whenever the user typed something in the form and cleared it causing an exception (#9637)

This commit is contained in:
Felipe 2024-09-20 04:59:38 -03:00 committed by GitHub
parent 075f9811c4
commit ee1cd91e98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -237,6 +237,11 @@ export default {
const resourceName = params.displayname || params.displaytext || params.name || this.resource.name
let hasJobId = false
Object.keys(params).forEach(key => {
if (params[key] === '') {
delete params[key]
}
})
api(this.action.api, params).then(json => {
for (const obj in json) {
if (obj.includes('response')) {