diff --git a/assets/js/src/form/form.jsx b/assets/js/src/form/form.jsx index b447d1f780..eef0443c93 100644 --- a/assets/js/src/form/form.jsx +++ b/assets/js/src/form/form.jsx @@ -57,8 +57,6 @@ define( if (props.item === undefined) { this.refs.form.reset(); } - } else { - this.loadItem(props.params.id); } }, loadItem: function (id) { @@ -76,6 +74,9 @@ define( loading: false, item: response.data, }); + if (typeof this.props.onItemLoad === 'function') { + this.props.onItemLoad(response.data); + } }).fail(() => { this.setState({ loading: false,