Update 0BDFDB.plugin.js

This commit is contained in:
Mirco Wittrien 2022-02-11 22:10:09 +01:00
parent de2d701528
commit 705a691ae6
1 changed files with 1 additions and 0 deletions

View File

@ -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);