Skip to content

Commit

Permalink
🫙 default to empty object if no initial values (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
petar-cvit authored May 22, 2024
1 parent 1b19d17 commit 49edc05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cyclops-ui/src/utils/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function flattenObjectKeys(
}

export function findMaps(fields: any[], values: any, initialValues: any): any {
let out: any = initialValues;
let out: any = initialValues ? initialValues : {};
fields.forEach((field) => {
let valuesList: any[] = [];
switch (field.type) {
Expand Down

0 comments on commit 49edc05

Please sign in to comment.