Skip to content

Commit

Permalink
Fix default value for field form
Browse files Browse the repository at this point in the history
  • Loading branch information
afbora committed Feb 7, 2025
1 parent 876fdcd commit bc3c4d5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion panel/src/components/Forms/Field/EntriesField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,12 @@ export default {
return;
}
value ??= this.$helper.field.form({ field: this.field })?.field;
value ??= "";
const entry = {
id: this.$helper.uuid(),
value: value ?? ""
value: value,
};
index ??= this.entries.length;
Expand Down

0 comments on commit bc3c4d5

Please sign in to comment.