diff --git a/src/ui/parcellationRegion/region.base.ts b/src/ui/parcellationRegion/region.base.ts index cec5a668c416bc6c4012831cb92e3f03635ef671..a9318528241120a14e5918041dd47b8f091f08bf 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'