Skip to content

Commit

Permalink
fix: fix object being wrappedReactClass
Browse files Browse the repository at this point in the history
  • Loading branch information
liujuping authored and JackLian committed Mar 30, 2023
1 parent caa2009 commit a0b51d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/utils/src/build-components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export function buildComponents(libraryMap: LibraryMap,
} else {
component = findComponent(libraryMap, componentName, component);
if (component) {
if (!acceptsRef(component)) {
if (!acceptsRef(component) && isReactComponent(component)) {
component = wrapReactClass(component as FunctionComponent);
}
components[componentName] = component;
Expand Down

0 comments on commit a0b51d7

Please sign in to comment.