File tree Expand file tree Collapse file tree
packages/contentstack-migration/src/modules Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -77,8 +77,8 @@ export default class ContentType extends Base {
7777 } ;
7878 let field = new Field ( id , CREATE_CT , contentTypeService , req ) ;
7979 // TODO: should find better way to attach content type level methods
80- ( field as any ) . singleton = this . singleton . bind ( this ) ;
81- ( field as any ) . isPage = this . isPage . bind ( this ) ;
80+ ( field as any ) . singleton = this . singleton ;
81+ ( field as any ) . isPage = this . isPage ;
8282 return field ;
8383 }
8484
@@ -163,8 +163,8 @@ export default class ContentType extends Base {
163163 // Keeping the same instance of contentTypeService in Field class
164164 let fieldI = new Field ( id , EDIT_CT , contentTypeService , req ) ;
165165 // TODO: should find better way to attach content type level methods
166- ( fieldI as any ) . singleton = this . singleton . bind ( this ) ;
167- ( fieldI as any ) . isPage = this . isPage . bind ( this ) ;
166+ ( fieldI as any ) . singleton = this . singleton ;
167+ ( fieldI as any ) . isPage = this . isPage ;
168168 return fieldI ;
169169 }
170170
You can’t perform that action at this time.
0 commit comments