diff --git a/superset/assets/src/CRUD/utils.js b/superset/assets/src/CRUD/utils.js index 6de8c4b1653b7..3bf24e539427a 100644 --- a/superset/assets/src/CRUD/utils.js +++ b/superset/assets/src/CRUD/utils.js @@ -7,7 +7,7 @@ export function recurseReactClone(children, type, propExtender) { */ return React.Children.map(children, (child) => { let newChild = child; - if (child && child.type === type) { + if (child && child.type.name === type.name) { newChild = React.cloneElement(child, propExtender(child)); } if (newChild && newChild.props.children) {