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( static fromData(
logEntry: IEntityLogEntry, logEntry: IEntityLogEntry,
allLogEntries: IEntityLogEntry[],
dictionary: Dictionary, dictionary: Dictionary,
changeLogType: ChangeType, changeLogType: ChangeType,
legalBasisList: ILegalBasis[], legalBasisList: ILegalBasis[],

View File

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