From 2c8d258c829b3a8e888a7757923a86a94803ab79 Mon Sep 17 00:00:00 2001
From: fsdavid <daviti1@mail.com>
Date: Fri, 16 Jul 2021 10:46:53 +0200
Subject: [PATCH] fix connectivity undefined

---
 .../connectivityBrowser/connectivityBrowser.component.ts   | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/atlasComponents/connectivity/connectivityBrowser/connectivityBrowser.component.ts b/src/atlasComponents/connectivity/connectivityBrowser/connectivityBrowser.component.ts
index ffc6727ef..e0e984689 100644
--- a/src/atlasComponents/connectivity/connectivityBrowser/connectivityBrowser.component.ts
+++ b/src/atlasComponents/connectivity/connectivityBrowser/connectivityBrowser.component.ts
@@ -106,9 +106,10 @@ export class ConnectivityBrowserComponent implements OnInit, AfterViewInit, OnDe
       this.atlasId = val.context.atlas['@id']
       this.parcellationId = val.context.parcellation['@id']
 
-      this.setConnectivityUrl()
-      this.setProfileLoadUrl()
-
+      if(this.selectedDataset) {
+        this.setConnectivityUrl()
+        this.setProfileLoadUrl()
+      }
       // TODO may not be necessary
       this.changeDetectionRef.detectChanges()
     }
-- 
GitLab