From 824475058b6bb85bac60faaa1c4ffc2a92b2e1d5 Mon Sep 17 00:00:00 2001 From: httpiga <36515569+httpiga@users.noreply.github.com> Date: Thu, 7 Sep 2023 11:33:41 +0200 Subject: [PATCH] Throw invalid symbol in case of undefined asset keys --- apps/api/src/app/import/import.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/src/app/import/import.service.ts b/apps/api/src/app/import/import.service.ts index 026f3610e..da0e4806c 100644 --- a/apps/api/src/app/import/import.service.ts +++ b/apps/api/src/app/import/import.service.ts @@ -566,7 +566,7 @@ export class ImportService { ]) )?.[symbol]; - if (!assetProfile) { + if (!assetProfile?.name) { throw new Error( `activities.${index}.symbol ("${symbol}") is not valid for the specified data source ("${dataSource}")` );