From 7fb2d4f57df49e5e0e5cd6f34640bddf7b5de472 Mon Sep 17 00:00:00 2001
From: Marc Hanisch <mhanisch@gfz-potsdam.de>
Date: Tue, 16 Mar 2021 10:52:01 +0100
Subject: [PATCH] removes debug output

---
 pages/devices/_deviceId/properties.vue | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/pages/devices/_deviceId/properties.vue b/pages/devices/_deviceId/properties.vue
index 83c2bb647..da187f261 100644
--- a/pages/devices/_deviceId/properties.vue
+++ b/pages/devices/_deviceId/properties.vue
@@ -161,16 +161,15 @@ export default class DevicePropertiesPage extends Vue {
 
   openSelectedPanel (): void {
     const propertyId = this.getPropertyIdFromUrl()
-    console.log('propertyId by URL is', propertyId)
     if (!propertyId) {
       return
     }
     const propertyIndex: number = this.deviceProperties.findIndex((prop: DeviceProperty) => prop.id === propertyId)
-    console.log('propertyIndex is', propertyIndex)
     if (propertyIndex === -1) {
       return
     }
-    Vue.set(this, 'openedPanels', [propertyIndex])
+    this.openedPanels.forEach((_, i) => this.openedPanels.splice(i, 1))
+    this.openedPanels.push(propertyIndex)
   }
 
   addProperty (): void {
@@ -204,7 +203,6 @@ export default class DevicePropertiesPage extends Vue {
   // @ts-ignore
   onRouteChanged () {
     this.openSelectedPanel()
-    console.log('route changed', this.openedPanels)
   }
 }
 </script>
-- 
GitLab