DownloadAction WithBlobPart instead of WithData
Closes #373 (closed)
There's a bug in downloadFhirActionFactory
. The download still works, but the file content is useless because the Promise is not awaited.
Not gonna fix it since I'm currently reworking this anyways, and it doesn't really affect this MR, just noting it in case someone's confused.
If you want, change the data
property as follows:
data: async () => {
const language : string = (await rccSettingsService.get<string>('activeLanguage')).value
return JSON.stringify( (await fhirService.exportToFHIR(language)) )
},