Bugfix/handle undefined in decode data source (#2013)
* Handle undefined data source * Update changelog
This commit is contained in:
@@ -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({
|
||||
|
Reference in New Issue
Block a user