RED-7980 - fixed "Pending annotation not displayed"

This commit is contained in:
Valentin Mihai 2024-03-20 14:28:44 +02:00
parent 9ac4b7f047
commit f518e508ca
2 changed files with 4 additions and 4 deletions

View File

@ -215,7 +215,6 @@ export class AnnotationWrapper implements IListable {
static fromData(
logEntry: IEntityLogEntry,
allLogEntries: IEntityLogEntry[],
dictionary: Dictionary,
changeLogType: ChangeType,
legalBasisList: ILegalBasis[],

View File

@ -230,13 +230,14 @@ export class FileDataService extends EntitiesService<AnnotationWrapper, Annotati
if (entry.state === EntryStates.PENDING) {
const originalAnnotation = this.#findOriginalAnnotation(annotations, entry);
entry.oldState = originalAnnotation.entry.state;
originalAnnotation.pending = true;
if (originalAnnotation) {
entry.oldState = originalAnnotation.entry.state;
originalAnnotation.pending = true;
}
}
const annotation = AnnotationWrapper.fromData(
entry,
entityLog.entityLogEntry,
dictionary,
changeType,
entityLog.legalBasis ?? [],