fix(core): update

This commit is contained in:
2023-08-28 09:49:51 +02:00
parent 7b3793e943
commit 9cd28fa819
9 changed files with 24 additions and 6 deletions

View File

@ -104,6 +104,9 @@ export class DeesForm extends DeesElement {
const children = this.getFormElements();
const valueObject: { [key: string]: string | number | boolean } = {};
for (const child of children) {
if (!child.key) {
console.log(`form element with label "${child.label}" has no key. skipping.`);
}
valueObject[child.key] = child.value;
}
return valueObject;