From fec34029cd1b477d48b6eebdbecf5c448e7a0af7 Mon Sep 17 00:00:00 2001
From: fsdavid <daviti1@mail.com>
Date: Thu, 23 Apr 2020 14:00:20 +0200
Subject: [PATCH] fix bug 507

---
 src/ui/parcellationRegion/region.base.ts | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/ui/parcellationRegion/region.base.ts b/src/ui/parcellationRegion/region.base.ts
index cec5a668c..a93185282 100644
--- a/src/ui/parcellationRegion/region.base.ts
+++ b/src/ui/parcellationRegion/region.base.ts
@@ -98,7 +98,8 @@ export class RegionBase {
           this.parcellationRegions = []
           this.getAllRegionsFromParcellation(parcellation.regions)
           this.parcellationRegions.forEach(pr => {
-            if (JSON.stringify(pr.fullId) === JSON.stringify(this.region.fullId)) {
+            if (!(JSON.stringify(pr.fullId) === 'null' || JSON.stringify(this.region.fullId) === 'null')
+                && JSON.stringify(pr.fullId) === JSON.stringify(this.region.fullId)) {
               const baseAreaHemisphere =
                   this.region.name.includes(' - right hemisphere')? 'Right' :
                     this.region.name.includes(' - left hemisphere')? 'Left'
-- 
GitLab