Skip to content

Commit

Permalink
fix: fixed name for static fields!
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliaghisini committed May 13, 2022
1 parent 43b4aa3 commit 8e4452f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/FormView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,11 @@ const FormView = ({
<Field
{...field}
field_type={field.field_type || 'text'}
name={field.label}
name={
'static_field_' +
(field.field_id ??
field.name?.toLowerCase()?.replace(' ', ''))
}
value={field.value}
onChange={() => {}}
disabled
Expand Down

0 comments on commit 8e4452f

Please sign in to comment.