Skip to content

Commit 8e0a57c

Browse files
committed
Release workflow Update
1 parent f48c552 commit 8e0a57c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

packages/contentstack-migration/src/modules/content-types.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)