Skip to content

Commit 6907044

Browse files
yodaggJackLian
authored andcommitted
fix: fix componentsMap spell mistake
1 parent 12dee7f commit 6907044

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

packages/designer/src/project/project.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,13 @@ export class Project implements IProject {
115115

116116
private getComponentsMap(): IPublicTypeComponentsMap {
117117
return this.documents.reduce((
118-
compomentsMap: IPublicTypeComponentsMap,
118+
componentsMap: IPublicTypeComponentsMap,
119119
curDoc: DocumentModel,
120120
) => {
121121
const curComponentsMap = curDoc.getComponentsMap();
122122
if (Array.isArray(curComponentsMap)) {
123123
curComponentsMap.forEach((item) => {
124-
const found = compomentsMap.find((eItem) => {
124+
const found = componentsMap.find((eItem) => {
125125
if (
126126
isProCodeComponentType(eItem) &&
127127
isProCodeComponentType(item) &&
@@ -138,10 +138,10 @@ export class Project implements IProject {
138138
return false;
139139
});
140140
if (found) return;
141-
compomentsMap.push(item);
141+
componentsMap.push(item);
142142
});
143143
}
144-
return compomentsMap;
144+
return componentsMap;
145145
}, [] as IPublicTypeComponentsMap);
146146
}
147147

0 commit comments

Comments
 (0)