Bugfix/handle undefined in decode data source (#2013)

* Handle undefined data source

* Update changelog
This commit is contained in:
Thomas Kaul
2023-05-28 10:29:52 +02:00
committed by GitHub
parent 16a5ace4be
commit 144b6b2211
2 changed files with 9 additions and 1 deletions

View File

@@ -15,7 +15,11 @@ export function capitalize(aString: string) {
}
export function decodeDataSource(encodedDataSource: string) {
return Buffer.from(encodedDataSource, 'hex').toString();
if (encodedDataSource) {
return Buffer.from(encodedDataSource, 'hex').toString();
}
return undefined;
}
export function downloadAsFile({