diff --git a/packages/ra-core/src/controller/input/ReferenceArrayInputController.tsx b/packages/ra-core/src/controller/input/ReferenceArrayInputController.tsx index a765edb0c3c..7c4edbcfd7c 100644 --- a/packages/ra-core/src/controller/input/ReferenceArrayInputController.tsx +++ b/packages/ra-core/src/controller/input/ReferenceArrayInputController.tsx @@ -165,8 +165,8 @@ export class UnconnectedReferenceArrayInputController extends Component< } componentDidMount() { - this.fetchReferences(this.props, true) - this.fetchOptions(this.props) + this.fetchReferences(this.props, true); + this.fetchOptions(this.props); } componentWillReceiveProps(nextProps: Props & EnhancedProps) { @@ -234,7 +234,9 @@ export class UnconnectedReferenceArrayInputController extends Component< 'The value of ReferenceArrayInput should be an array' ); } - const idsToFetch = isInitialCall ? ids : difference(ids, this.props.input.value) + const idsToFetch = isInitialCall + ? ids + : difference(ids, this.props.input.value); crudGetMany(reference, idsToFetch); } };