From a08453d95040f6842057c79658047f1c5dbf5c36 Mon Sep 17 00:00:00 2001 From: Konstantina Galouni Date: Wed, 13 May 2020 13:08:17 +0000 Subject: [PATCH] [Trunk | Monitor Dashboard]: monitor.component.ts: Initialize activeTopic, activeCategory, activeSubCategory when url path changes (Bug fix: When a topic has no content do not show previous content). git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-monitor-portal/trunk/monitor_dashboard@58692 d315682c-612b-4755-9ff5-7f18f6832af3 --- src/app/monitor/monitor.component.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/monitor/monitor.component.ts b/src/app/monitor/monitor.component.ts index c0fcb7d..d09da51 100644 --- a/src/app/monitor/monitor.component.ts +++ b/src/app/monitor/monitor.component.ts @@ -91,6 +91,10 @@ export class MonitorComponent implements OnInit, OnDestroy, IDeactivateComponent this.route.params.subscribe(params => { this.loading = true; + this.activeTopic = null; + this.activeCategory = null; + this.activeSubCategory = null; + if (subscription) { subscription.unsubscribe(); }