Skip to content

Commit

Permalink
fix(annotations): empty annotations on upload of new region (#536)
Browse files Browse the repository at this point in the history
  • Loading branch information
EricSommerhalder committed Sep 16, 2021
1 parent f08706b commit 075e6b1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/workspace/resource/resource.component.ts
Expand Up @@ -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);
}
Expand Down

0 comments on commit 075e6b1

Please sign in to comment.