From ea61a765b918baefbdb63e56e62348e5b0624191 Mon Sep 17 00:00:00 2001 From: fatme Date: Thu, 11 Jul 2019 11:56:13 +0300 Subject: [PATCH] fix: don't build every time the application from sidekick when using cloud build Currently the application is built every time from sidekick when opening the app and starting cloud build. This happens as we decided that there are changes in app_resources as `prepareData.release` is undefined but `prepareInfo.release` is false. This way the check `prepareData.release !== this._prepareInfo.release` passes and we set `this._changesInfo.appResourcesChanged` to `true`. --- lib/services/project-changes-service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/services/project-changes-service.ts b/lib/services/project-changes-service.ts index a82a9a009c..55ce723b97 100644 --- a/lib/services/project-changes-service.ts +++ b/lib/services/project-changes-service.ts @@ -91,7 +91,7 @@ export class ProjectChangesService implements IProjectChangesService { await platformData.platformProjectService.checkForChanges(this._changesInfo, prepareData, projectData); } - if (prepareData.release !== this._prepareInfo.release) { + if (!!prepareData.release !== !!this._prepareInfo.release) { this.$logger.trace(`Setting all setting to true. Current options are: `, prepareData, " old prepare info is: ", this._prepareInfo); this._changesInfo.appResourcesChanged = true; this._changesInfo.configChanged = true;