cat-documents-ng 1.0.51 → 1.0.52

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.
@@ -5844,7 +5844,8 @@ class DocumentViewerService {
5844
5844
  const documentStatus = this.calculateDocumentStatus(document);
5845
5845
  const documentIsUploaded = this.calculateIsDocumentUploaded(document);
5846
5846
  this.documentStore.updateDocumentViewerState(document, undefined, undefined, undefined, documentStatus, documentIsUploaded, alertData);
5847
- // if( !skipLoadDocumentHistory && document?._id ) this.loadDocumentHistory(document._id);
5847
+ if (!skipLoadDocumentHistory && document?._id)
5848
+ this.loadDocumentHistory(document._id);
5848
5849
  }
5849
5850
  /**
5850
5851
  * Loads document history data
@@ -5963,9 +5964,9 @@ class DocumentViewerService {
5963
5964
  return;
5964
5965
  }
5965
5966
  const currentState = this.documentQuery.getDocumentViewerState();
5966
- // if (currentState.selectedDocument?._id) {
5967
- // this.loadDocumentHistory(currentState.selectedDocument._id);
5968
- // }
5967
+ if (currentState.selectedDocument?._id) {
5968
+ this.loadDocumentHistory(currentState.selectedDocument._id);
5969
+ }
5969
5970
  // Use the same refresh method as other components for consistency
5970
5971
  this.documentService.refreshAllDataWithCurrentFilters(contextId);
5971
5972
  }