Update 0BDFDB.plugin.js
This commit is contained in:
parent
de2d701528
commit
705a691ae6
|
@ -8259,6 +8259,7 @@ module.exports = (_ => {
|
|||
if (e.returnValue.props.children.type && e.returnValue.props.children.type.displayName) {
|
||||
let name = e.returnValue.props.children.type.displayName;
|
||||
let originalReturn = e.returnValue.props.children.type(e.returnValue.props.children.props);
|
||||
if (!originalReturn || !originalReturn.type) return;
|
||||
let newType = props => {
|
||||
const returnValue = BDFDB.ReactUtils.createElement(originalReturn.type, originalReturn.props);
|
||||
if (returnValue.props.children) call(props, returnValue, name);
|
||||
|
|
Loading…
Reference in New Issue