From b217ae9b29dd61f94ded889cf54b486589aa479f Mon Sep 17 00:00:00 2001 From: Valentin Hervieu Date: Mon, 15 Feb 2021 15:54:46 +0100 Subject: [PATCH] Fix ReferenceArrayInputView propTypes The propTypes for `resource` was marked as required while the TS definition was marked as optional. I'm getting a warning in my application when using `ReferenceArrayInput` without a `resource` because of this. --- packages/ra-ui-materialui/src/input/ReferenceArrayInput.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ra-ui-materialui/src/input/ReferenceArrayInput.tsx b/packages/ra-ui-materialui/src/input/ReferenceArrayInput.tsx index ba18b763c61..ba434c07cec 100644 --- a/packages/ra-ui-materialui/src/input/ReferenceArrayInput.tsx +++ b/packages/ra-ui-materialui/src/input/ReferenceArrayInput.tsx @@ -302,7 +302,7 @@ ReferenceArrayInputView.propTypes = { meta: PropTypes.object, onChange: PropTypes.func, options: PropTypes.object, - resource: PropTypes.string.isRequired, + resource: PropTypes.string, setFilter: PropTypes.func, setPagination: PropTypes.func, setSort: PropTypes.func,