Skip to content

Commit ee1cd91

Browse files
authored
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)
1 parent 075f981 commit ee1cd91

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

ui/src/views/iam/DomainActionForm.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,11 @@ export default {
237237
238238
const resourceName = params.displayname || params.displaytext || params.name || this.resource.name
239239
let hasJobId = false
240+
Object.keys(params).forEach(key => {
241+
if (params[key] === '') {
242+
delete params[key]
243+
}
244+
})
240245
api(this.action.api, params).then(json => {
241246
for (const obj in json) {
242247
if (obj.includes('response')) {

0 commit comments

Comments
 (0)