Bugfix/handle undefined in decode data source (#2013)
* Handle undefined data source * Update changelog
This commit is contained in:
parent
16a5ace4be
commit
144b6b2211
@ -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 a link to manage the benchmarks to the benchmark comparator
|
||||||
- Added support for localized routes
|
- Added support for localized routes
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Fixed an issue in the data source transformation
|
||||||
|
|
||||||
## 1.272.0 - 2023-05-26
|
## 1.272.0 - 2023-05-26
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
@ -15,7 +15,11 @@ export function capitalize(aString: string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function decodeDataSource(encodedDataSource: 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({
|
export function downloadAsFile({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user