@valtimo/zgw 13.4.1 → 13.4.2

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.
@@ -1785,7 +1785,9 @@ class CaseDetailTabDocumentenApiDocumentsComponent {
1785
1785
  return !this.filePermissions[file.fileId]?.canDelete;
1786
1786
  }
1787
1787
  downloadDocument(relatedFile, forceDownload) {
1788
- this.downloadService.downloadFile(`${this.valtimoEndpointUri}v1/documenten-api/${relatedFile.pluginConfigurationId}/files/${relatedFile.fileId}/download`, relatedFile.bestandsnaam ?? '', forceDownload);
1788
+ this.documentId$.pipe(take(1)).subscribe(documentId => {
1789
+ this.downloadService.downloadFile(`${this.valtimoEndpointUri}v1/zaken-api/${relatedFile.pluginConfigurationId}/case-document/${documentId}/files/${relatedFile.fileId}/download`, relatedFile.bestandsnaam ?? '', forceDownload);
1790
+ });
1789
1791
  }
1790
1792
  openQueryParamsSubscription() {
1791
1793
  this._subscriptions.add(combineLatest([