Skip to content
Permalink
Browse files
fix(annotations): empty annotations on upload of new region (#536)
  • Loading branch information
EricSommerhalder committed Sep 16, 2021
1 parent f08706b commit 075e6b187a9a8886ce8ff56f0f0045210e0f2854
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/app/workspace/resource/resource.component.ts
@@ -519,6 +519,11 @@ export class ResourceComponent implements OnInit, OnChanges, OnDestroy {
}

updateRegions(iri: string) {
if (this.incomingResource) {
this.incomingResource.incomingAnnotations = [];
} else {
this.resource.incomingAnnotations = [];
}
this.getIncomingRegions(this.incomingResource ? this.incomingResource : this.resource, 0);
this.openRegion(iri);
}

0 comments on commit 075e6b1

Please sign in to comment.