Skip to content
This repository has been archived by the owner on Jul 23, 2019. It is now read-only.

Commit

Permalink
fix: remove all previous selected frontends first (#559)
Browse files Browse the repository at this point in the history
  • Loading branch information
edewit authored Dec 18, 2018
1 parent 5ac2bf4 commit c62b4c1
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,11 @@ export class FrontendStepComponent extends LauncherStep implements OnInit {

private updateCapabilityState(value: any) {
const capabilities = this.projectile.getState('Capabilities').state.capabilities;
this.frontendRuntimes.forEach(fe => capabilities.delete(fe.id));
if (value) {
capabilities.set(value.name,
{ module: 'web-app', 'runtime': value }
);
} else {
this.frontendRuntimes.forEach(fe => capabilities.delete(fe.id));
}
}
}

0 comments on commit c62b4c1

Please sign in to comment.