Skip to content

Commit

Permalink
fix: always set static_text fields as not required
Browse files Browse the repository at this point in the history
  • Loading branch information
pnicolli committed Oct 3, 2024
1 parent afe2d11 commit 3cdb14d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/Sidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,10 @@ const Sidebar = ({
<BlockDataForm
schema={FieldSchema(subblock)}
onChangeField={(name, value) => {
var update_values = {};
const update_values = {};
if (subblock.field_type === 'static_text') {
update_values.required = false;
}

onChangeSubBlock(index, {
...subblock,
Expand Down

0 comments on commit 3cdb14d

Please sign in to comment.