Skip to content

Commit

Permalink
Merge pull request #2753 from kandebr/fix-reference-many-field-contro…
Browse files Browse the repository at this point in the history
…ller

Fix ReferenceManyField doesn't rerender when the filter props changes
  • Loading branch information
fzaninotto authored Jan 11, 2019
2 parents 8e6c0a9 + e52b95c commit 869d073
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ export class ReferenceManyFieldController extends Component {
}

componentWillReceiveProps(nextProps) {
if (this.props.record.id !== nextProps.record.id) {
if (
this.props.record.id !== nextProps.record.id ||
!isEqual(this.props.filter, nextProps.filter)
) {
this.fetchReferences(nextProps);
}

Expand Down

0 comments on commit 869d073

Please sign in to comment.