Skip to content

Commit

Permalink
fix: suppress errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ralfaron committed Jul 23, 2024
1 parent 48247d3 commit 0869375
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/aas-server/src/app/packages/json-reader-v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0869375

Please sign in to comment.