Skip to content

Commit

Permalink
fix: pass in handleSubmit reference instead of function call as prop #…
Browse files Browse the repository at this point in the history
  • Loading branch information
vbojilova committed Aug 19, 2024
1 parent e1b2c6f commit 5c15e35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/containers/IndicatorNew/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ export class IndicatorNew extends React.PureComponent { // eslint-disable-line r
saving={saveSending}
bindHandleSubmit={this.bindHandleSubmit}
handleSubmit={(formData) => this.props.handleSubmit(formData, recommendationsByFw)}
handleSubmitFail={this.props.handleSubmitFail()}
handleSubmitFail={this.props.handleSubmitFail}
handleCancel={this.props.handleCancel}
/*validators={{
'': {
Expand Down
2 changes: 1 addition & 1 deletion app/containers/PageNew/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export class PageNew extends React.PureComponent { // eslint-disable-line react/
saving={saveSending}
bindHandleSubmit={this.bindHandleSubmit}
handleSubmit={(formData) => this.props.handleSubmit(formData)}
handleSubmitFail={() => this.props.handleSubmitFail()}
handleSubmitFail={this.props.handleSubmitFail}
handleCancel={this.props.handleCancel}
fields={{
header: {
Expand Down

0 comments on commit 5c15e35

Please sign in to comment.