mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-11 18:42:56 +00:00
fix: fix issues with build-components
This commit is contained in:
parent
762189cc56
commit
a4c93c43b9
@ -36,7 +36,7 @@ export function getSubComponent(library: any, paths: string[]) {
|
||||
const key = paths[i]!;
|
||||
let ex: any;
|
||||
try {
|
||||
component = library[key];
|
||||
component = library[key] || component;
|
||||
} catch (e) {
|
||||
ex = e;
|
||||
component = null;
|
||||
@ -51,9 +51,6 @@ export function getSubComponent(library: any, paths: string[]) {
|
||||
}
|
||||
library = component;
|
||||
i++;
|
||||
if (isReactComponent(component)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
return component;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user