Merge branch 'VM/RED-7980' into 'master'
RED-7980 - fixed "Pending annotation not displayed" Closes RED-7980 See merge request redactmanager/red-ui!351
This commit is contained in:
commit
e2c108332f
@ -215,7 +215,6 @@ export class AnnotationWrapper implements IListable {
|
||||
|
||||
static fromData(
|
||||
logEntry: IEntityLogEntry,
|
||||
allLogEntries: IEntityLogEntry[],
|
||||
dictionary: Dictionary,
|
||||
changeLogType: ChangeType,
|
||||
legalBasisList: ILegalBasis[],
|
||||
|
||||
@ -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 ?? [],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user