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

* Handle undefined data source

* Update changelog
pull/2014/head
Thomas Kaul 1 year ago committed by GitHub
parent 16a5ace4be
commit 144b6b2211
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -13,6 +13,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added a link to manage the benchmarks to the benchmark comparator
- Added support for localized routes
### Fixed
- Fixed an issue in the data source transformation
## 1.272.0 - 2023-05-26
### Added

@ -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({

Loading…
Cancel
Save