fixed "Hidden images reappear after reanalysis"

This commit is contained in:
Valentin 2021-10-13 15:04:53 +03:00
parent 5e7db53713
commit ccb50dceac

View File

@ -283,7 +283,7 @@ export class AnnotationActionsService {
}
updateHiddenAnnotation(annotations: AnnotationWrapper[], viewerAnnotations: Annotation[], hidden: boolean) {
const annotationId = (viewerAnnotations[0] as any).Tw;
const annotationId = (viewerAnnotations[0] as any).Dx;
const annotationToBeUpdated = annotations.find((a: AnnotationWrapper) => a.annotationId === annotationId);
annotationToBeUpdated.hidden = hidden;
}