frontend-app-api: fix AppNode serialization

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2023-10-28 13:44:12 +02:00
parent 9c91930d25
commit fe6d09953d
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/frontend-app-api': patch
---
Fix for app node output IDs not being serialized correctly.
@@ -65,7 +65,7 @@ class SerializableAppNode implements AppNode {
const dataRefs = this.instance && [...this.instance.getDataRefs()];
const out =
dataRefs && dataRefs.length > 0
? ` out=[${[...dataRefs.keys()].join(', ')}]`
? ` out=[${[...dataRefs].map(r => r.id).join(', ')}]`
: '';
if (this.edges.attachments.size === 0) {