@bolttech/form-engine-core 1.0.0-beta.21 → 1.0.0-beta.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.esm.js +4 -4
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -4295,10 +4295,10 @@ class FormGroup {
|
|
|
4295
4295
|
formIndex,
|
|
4296
4296
|
fieldIndex
|
|
4297
4297
|
}) {
|
|
4298
|
-
var _a;
|
|
4299
4298
|
const form = this.forms.get(formIndex);
|
|
4300
|
-
|
|
4301
|
-
|
|
4299
|
+
form === null || form === void 0 ? void 0 : form.removeField({
|
|
4300
|
+
key: fieldIndex
|
|
4301
|
+
});
|
|
4302
4302
|
if ((form === null || form === void 0 ? void 0 : form.fields.size) === 0) {
|
|
4303
4303
|
this.removeForm({
|
|
4304
4304
|
key: formIndex
|
|
@@ -4390,7 +4390,7 @@ class FormGroup {
|
|
|
4390
4390
|
}), map(() => ({
|
|
4391
4391
|
groupValid: ids.every(id => {
|
|
4392
4392
|
var _a;
|
|
4393
|
-
return (_a = this.forms.get(id)) === null || _a === void 0 ? void 0 : _a.valid;
|
|
4393
|
+
return !this.forms.get(id) || ((_a = this.forms.get(id)) === null || _a === void 0 ? void 0 : _a.valid);
|
|
4394
4394
|
}),
|
|
4395
4395
|
forms: ids.reduce((acc, curr) => {
|
|
4396
4396
|
const formInstance = this.forms.get(curr);
|