Skip to content

Commit

Permalink
edgecreator-api: Exclude from listing edges with invalid metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
bperel committed Jan 26, 2025
1 parent ddcecc9 commit 35f7fd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/edgecreator/api/services/browse/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const getSvgMetadata = (
metadataType: string
) =>
metadataNodes
.filter(({ type, "#text": text }) => type === metadataType && text)
.filter(({ type, "#text": text }) => type === metadataType && typeof text === 'string')
.map(({ "#text": text }) => text.trim());

const findInDir = (dir: string) =>
Expand Down

0 comments on commit 35f7fd3

Please sign in to comment.