From 0869375adc4b1ee0eedd52e600a2a58ea592f40e Mon Sep 17 00:00:00 2001 From: Ralf Aron Date: Tue, 23 Jul 2024 13:31:28 +0200 Subject: [PATCH] fix: suppress errors --- projects/aas-server/src/app/packages/json-reader-v2.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/aas-server/src/app/packages/json-reader-v2.ts b/projects/aas-server/src/app/packages/json-reader-v2.ts index cde4c338..9264a9f1 100644 --- a/projects/aas-server/src/app/packages/json-reader-v2.ts +++ b/projects/aas-server/src/app/packages/json-reader-v2.ts @@ -571,8 +571,8 @@ export class JsonReaderV2 extends AASReader { } private readIdentifier(source: aasv2.Identifier): string { - if (!source.id) { - throw new Error('Identifier.id'); + if (typeof source.id !== 'string') { + return ''; } return source.id;