mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-29 23:08:12 +00:00
fix: fix componentsMap spell mistake
This commit is contained in:
parent
12dee7f911
commit
69070441c0
@ -115,13 +115,13 @@ export class Project implements IProject {
|
|||||||
|
|
||||||
private getComponentsMap(): IPublicTypeComponentsMap {
|
private getComponentsMap(): IPublicTypeComponentsMap {
|
||||||
return this.documents.reduce((
|
return this.documents.reduce((
|
||||||
compomentsMap: IPublicTypeComponentsMap,
|
componentsMap: IPublicTypeComponentsMap,
|
||||||
curDoc: DocumentModel,
|
curDoc: DocumentModel,
|
||||||
) => {
|
) => {
|
||||||
const curComponentsMap = curDoc.getComponentsMap();
|
const curComponentsMap = curDoc.getComponentsMap();
|
||||||
if (Array.isArray(curComponentsMap)) {
|
if (Array.isArray(curComponentsMap)) {
|
||||||
curComponentsMap.forEach((item) => {
|
curComponentsMap.forEach((item) => {
|
||||||
const found = compomentsMap.find((eItem) => {
|
const found = componentsMap.find((eItem) => {
|
||||||
if (
|
if (
|
||||||
isProCodeComponentType(eItem) &&
|
isProCodeComponentType(eItem) &&
|
||||||
isProCodeComponentType(item) &&
|
isProCodeComponentType(item) &&
|
||||||
@ -138,10 +138,10 @@ export class Project implements IProject {
|
|||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
if (found) return;
|
if (found) return;
|
||||||
compomentsMap.push(item);
|
componentsMap.push(item);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return compomentsMap;
|
return componentsMap;
|
||||||
}, [] as IPublicTypeComponentsMap);
|
}, [] as IPublicTypeComponentsMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user