From b7366acda5e9d721baf03a415cb46a9d82fdc3b2 Mon Sep 17 00:00:00 2001 From: Felipe Evangelista Date: Wed, 4 Sep 2024 16:59:25 -0300 Subject: [PATCH] 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 --- ui/src/views/iam/DomainActionForm.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ui/src/views/iam/DomainActionForm.vue b/ui/src/views/iam/DomainActionForm.vue index 4d7c727d49e3..ab53a5974e40 100644 --- a/ui/src/views/iam/DomainActionForm.vue +++ b/ui/src/views/iam/DomainActionForm.vue @@ -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')) {