Skip to content

Commit 57181d8

Browse files
core: frontend: components: zenoh-inspector: ZenohNetwork: Fix usage of metadata.name
Signed-off-by: Patrick José Pereira <[email protected]>
1 parent be6a556 commit 57181d8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

core/frontend/src/components/zenoh-inspector/ZenohNetwork.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,11 +481,19 @@ export default Vue.extend({
481481
if (detailedInfo) {
482482
// Update the node with detailed information
483483
node.metadata = { ...node.metadata, ...detailedInfo }
484+
485+
if (detailedInfo.metadata?.name) {
486+
node.name = detailedInfo.metadata.name
487+
console.debug(`[Zenoh Network] Updated node ${node.id} with name: ${detailedInfo.metadata.name}`)
488+
}
484489
}
485490
}
486491
}
487492
488493
console.debug('[Zenoh Network] Specific node queries completed')
494+
495+
// Update the graph to show the new names
496+
this.updateCytoscapeGraph()
489497
} catch (error) {
490498
console.warn('[Zenoh Network] Error querying specific nodes:', error)
491499
}

0 commit comments

Comments
 (0)