From d9502c7516bc2d4ae467c6ea8a2e4816b0885f37 Mon Sep 17 00:00:00 2001 From: muhamedsalih-tw <104364298+muhamedsalih-tw@users.noreply.github.com> Date: Thu, 17 Nov 2022 05:45:39 +0530 Subject: Transfrom workspace components to ts (#775) --- src/stores/ServicesStore.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/stores/ServicesStore.ts') diff --git a/src/stores/ServicesStore.ts b/src/stores/ServicesStore.ts index 74810b81f..4fdd9d5ad 100644 --- a/src/stores/ServicesStore.ts +++ b/src/stores/ServicesStore.ts @@ -477,7 +477,7 @@ export default class ServicesStore extends TypedStore { : this._cleanUpTeamIdAndCustomUrl(recipeId, serviceData); const response = await this.createServiceRequest.execute(recipeId, data) - ._promise; + .promise; this.allServicesRequest.patch(result => { if (!result) return; @@ -536,7 +536,7 @@ export default class ServicesStore extends TypedStore { const newData = serviceData; if (serviceData.iconFile) { - await request._promise; + await request.promise; newData.iconUrl = request.result.data.iconUrl; newData.hasCustomUploadedIcon = true; @@ -562,7 +562,7 @@ export default class ServicesStore extends TypedStore { ); }); - await request._promise; + await request.promise; this.actionStatus = request.result.status; if (service.isEnabled) { @@ -596,7 +596,7 @@ export default class ServicesStore extends TypedStore { remove(result, (c: Service) => c.id === serviceId); }); - await request._promise; + await request.promise; this.actionStatus = request.result.status; } @@ -637,7 +637,7 @@ export default class ServicesStore extends TypedStore { @action async _clearCache({ serviceId }) { this.clearCacheRequest.reset(); const request = this.clearCacheRequest.execute(serviceId); - await request._promise; + await request.promise; } @action _setIsActive(service: Service, state: boolean): void { -- cgit v1.2.3-70-g09d2