File tree Expand file tree Collapse file tree
packages/designer/src/project Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments