cat-documents-ng 1.0.43 → 1.0.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6078,7 +6078,8 @@ class DocumentViewerService {
|
|
|
6078
6078
|
const documentStatus = this.calculateDocumentStatus(document);
|
|
6079
6079
|
const documentIsUploaded = this.calculateIsDocumentUploaded(document);
|
|
6080
6080
|
this.documentStore.updateDocumentViewerState(document, undefined, undefined, undefined, documentStatus, documentIsUploaded, alertData);
|
|
6081
|
-
|
|
6081
|
+
if (!skipLoadDocumentHistory && document?._id)
|
|
6082
|
+
this.loadDocumentHistory(document._id);
|
|
6082
6083
|
}
|
|
6083
6084
|
/**
|
|
6084
6085
|
* Loads document history data
|
|
@@ -6198,7 +6199,7 @@ class DocumentViewerService {
|
|
|
6198
6199
|
}
|
|
6199
6200
|
const currentState = this.documentQuery.getDocumentViewerState();
|
|
6200
6201
|
if (currentState.selectedDocument?._id) {
|
|
6201
|
-
|
|
6202
|
+
this.loadDocumentHistory(currentState.selectedDocument._id);
|
|
6202
6203
|
}
|
|
6203
6204
|
// Use the same refresh method as other components for consistency
|
|
6204
6205
|
this.documentService.refreshAllDataWithCurrentFilters(contextId);
|