Skip to content

Commit

Permalink
Classname fix for schemawidget modal.
Browse files Browse the repository at this point in the history
  • Loading branch information
robgietema committed Dec 17, 2024
1 parent 613fdad commit d37ea18
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1741,7 +1741,7 @@ class SchemaWidget extends Component {
<ModalForm
onSubmit={this.onAddField}
onCancel={this.onCancel}
className={`field-${slugify(this.state.addField || 'label_text_field')}`}
className={`field-${slugify(isString(this.state.addField) && this.state.addField !== '' ? this.state.addField : 'label_text_field')}`}
onChangeFormData={(data) => {
this.setState({
addField: data.factory,
Expand Down

0 comments on commit d37ea18

Please sign in to comment.