RED-7980 - fixed "Pending annotation not displayed"
This commit is contained in:
parent
9ac4b7f047
commit
f518e508ca
@ -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[],
|
||||||
|
|||||||
@ -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 ?? [],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user