Recommendations super type

This commit is contained in:
Adina Țeudan 2022-03-24 18:58:22 +02:00
parent 37108bf6cc
commit f01056853a

View File

@ -299,11 +299,6 @@ export class AnnotationWrapper implements Record<string, unknown> {
}
private static _setSuperType(annotationWrapper: AnnotationWrapper, redactionLogEntryWrapper: RedactionLogEntry) {
if (redactionLogEntryWrapper.recommendation && !redactionLogEntryWrapper.redacted) {
annotationWrapper.superType = SuperTypes.Recommendation;
return;
}
if (redactionLogEntryWrapper.manualChanges?.length) {
const lastManualChange = redactionLogEntryWrapper.manualChanges[redactionLogEntryWrapper.manualChanges.length - 1];