Skip to content

Commit 12e4e0e

Browse files
committed
ui: fix required boolean value issue
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
1 parent 4d59f36 commit 12e4e0e

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

ui/src/views/extension/RunCustomAction.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,18 @@ export default {
178178
delete this.rules[key]
179179
}
180180
})
181+
Object.keys(this.form).forEach(key => {
182+
if (key !== 'customactionid') {
183+
delete this.form[key]
184+
}
185+
})
181186
if (this.currentParameters && this.currentParameters.length > 0) {
182187
this.currentParameters.forEach(field => {
183188
const required = !!field.required
184189
const fieldRules = []
190+
if (field.type === 'BOOLEAN') {
191+
this.form[field.name] = false
192+
}
185193
// Required rule
186194
if (required) {
187195
fieldRules.push({

0 commit comments

Comments
 (0)