From 797c4a29f7cb8b874ca04b86233addf43089f23f Mon Sep 17 00:00:00 2001 From: "Marco A. Nina" Date: Fri, 16 Aug 2024 08:12:53 -0400 Subject: [PATCH] Verify filed group --- src/components/vue-form-builder.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/vue-form-builder.vue b/src/components/vue-form-builder.vue index eb3db4e39..19f127351 100644 --- a/src/components/vue-form-builder.vue +++ b/src/components/vue-form-builder.vue @@ -650,6 +650,10 @@ export default { let filter = this.filterQuery.toLowerCase(); const filtered = this.controls.filter((control) => { let result = control.label.toLowerCase().includes(filter); + if (!control.group) { + // If the group is not defined + control.group = 'Advanced'; + } if (control.group.toLowerCase().includes(filter)) { result = true; }