mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 01:51:40 -05:00
Merge pull request #2051 from lbke/feature/submitCallback
Allow user to return nothing in submitCallback
This commit is contained in:
commit
2dfc7d14ee
1 changed files with 4 additions and 4 deletions
|
@ -811,7 +811,7 @@ class SmartForm extends Component {
|
|||
|
||||
// if there's a submit callback, run it
|
||||
if (this.props.submitCallback) {
|
||||
data = this.props.submitCallback(data);
|
||||
data = this.props.submitCallback(data) || data;
|
||||
}
|
||||
|
||||
if (this.getFormType() === 'new') {
|
||||
|
|
Loading…
Add table
Reference in a new issue