Update BDFDB.js

This commit is contained in:
Mirco Wittrien 2020-04-09 10:24:17 +02:00 committed by GitHub
parent fbff72661e
commit cc97b11153
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -2112,7 +2112,7 @@
InternalBDFDB.setDefaultProps = function (component, defaultProps) {
if (BDFDB.ObjectUtils.is(component)) component.defaultProps = Object.assign({}, component.defaultProps, defaultProps);
};
InternalBDFDB.loadPatchedComp = function (name) {
InternalBDFDB.loadPatchedComp = function (path) {
let comp = BDFDB.ReactUtils.getValue(window.BDFDB, `LibraryComponents.${path}`);
if (comp && comp.prototype && comp.prototype.BDFDBpatch) return comp;
};