Skip to content

Commit

Permalink
FIO-8146 refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
HannaKurban committed Apr 4, 2024
1 parent 2fe6f14 commit dfe597c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/form/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ export default class FormComponent extends Component {
beforeSubmit() {
const submission = this.dataValue;
// Cancel triggered saveDraft
if (this.subForm.draftEnabled && this.subForm.triggerSaveDraft?.cancel) {
if (this.subForm?.draftEnabled && this.subForm.triggerSaveDraft?.cancel) {
this.subForm.triggerSaveDraft.cancel();
}

Expand Down

0 comments on commit dfe597c

Please sign in to comment.