mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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:
parent
075f9811c4
commit
ee1cd91e98
@ -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')) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user