Skip to content

Commit

Permalink
fix: download id
Browse files Browse the repository at this point in the history
  • Loading branch information
disaerna committed Oct 3, 2024
1 parent 34b7569 commit 16188f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libs/api/domains/documents/src/lib/documentV2.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,11 @@ export class DocumentServiceV2 {
default:
type = FileType.UNKNOWN
}
// Data for the confirmation modal
const confirmation = document.actions?.find(
(action) => action.type === 'confirmation',
)
// Data for the alert box
const alert = document.actions?.find((action) => action.type === 'alert')
const actions = document.actions?.filter(
(action) => action.type !== 'alert' && action.type !== 'confirmation',
Expand Down Expand Up @@ -376,7 +378,7 @@ export class DocumentServiceV2 {
return {
...x,
icon: 'download',
data: `${this.downloadServiceConfig.baseUrl}/download/v1/electronic-documents/${x.data}`, // if type file, we download
data: `${this.downloadServiceConfig.baseUrl}/download/v1/electronic-documents/${id}`,
}
}
if (x.type === 'url') {
Expand Down

0 comments on commit 16188f8

Please sign in to comment.