From 37c550a1ac3f225876651b3c0892c3e32f0f53a1 Mon Sep 17 00:00:00 2001 From: asvarcas Date: Wed, 30 Oct 2019 00:54:24 -0300 Subject: [PATCH] Fix failed tests. --- packages/ra-ui-materialui/src/input/ResettableTextField.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ra-ui-materialui/src/input/ResettableTextField.js b/packages/ra-ui-materialui/src/input/ResettableTextField.js index 1ce2e7de392..86768297541 100644 --- a/packages/ra-ui-materialui/src/input/ResettableTextField.js +++ b/packages/ra-ui-materialui/src/input/ResettableTextField.js @@ -85,7 +85,7 @@ function ResettableTextField({ ...restClasses } = classes; - const { endAdornment, ...InputPropsWithoutEndAdornment } = InputProps; + const { endAdornment, ...InputPropsWithoutEndAdornment } = InputProps || {}; return (