diff --git a/libs/common/src/lib/helper.ts b/libs/common/src/lib/helper.ts index d6da4ed94..bc02acbe6 100644 --- a/libs/common/src/lib/helper.ts +++ b/libs/common/src/lib/helper.ts @@ -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({