From c048f4ff6b171ee609c6787d09bc92e7c46ba907 Mon Sep 17 00:00:00 2001 From: Dean Campbell Date: Tue, 20 Oct 2020 14:23:32 -0700 Subject: [PATCH] Fix change detection after merging --- .../wow-client-options/wow-client-options.component.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wowup-electron/src/app/components/wow-client-options/wow-client-options.component.ts b/wowup-electron/src/app/components/wow-client-options/wow-client-options.component.ts index 30b1bc25..f8879db2 100644 --- a/wowup-electron/src/app/components/wow-client-options/wow-client-options.component.ts +++ b/wowup-electron/src/app/components/wow-client-options/wow-client-options.component.ts @@ -1,4 +1,4 @@ -import { Component, Input, OnDestroy, OnInit } from '@angular/core'; +import { ChangeDetectorRef, Component, Input, OnDestroy, OnInit } from '@angular/core'; import { MatDialog } from '@angular/material/dialog'; import { WowClientType } from 'app/models/warcraft/wow-client-type'; import { ElectronService } from 'app/services'; @@ -36,12 +36,14 @@ export class WowClientOptionsComponent implements OnInit, OnDestroy { private _dialog: MatDialog, private _electronService: ElectronService, private _warcraftService: WarcraftService, - private _wowupService: WowUpService + private _wowupService: WowUpService, + private _cdRef: ChangeDetectorRef ) { const warcraftProductSubscription = this._warcraftService.products$.subscribe(products => { const product = products.find(p => p.clientType === this.clientType); if (product) { this.clientLocation = product.location; + this._cdRef.detectChanges(); } });