From 1cd87dd9ff4c33b707e940cbe7d13568f1ca1b83 Mon Sep 17 00:00:00 2001 From: Thomas <4159106+dtslvr@users.noreply.github.com> Date: Thu, 7 Sep 2023 18:09:29 +0200 Subject: [PATCH] Improve import validation --- 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}")` );