Skip to content

Commit f66d317

Browse files
Michał Fąferekmfaferek93
authored andcommitted
fix: use topic name not uniqueKey for data navigation path in AppsPanel
uniqueKey includes direction suffix (e.g., /battery:publish) which breaks the API fetch when navigating to topic detail. Use cleanName (just the topic path) instead. uniqueKey is only for React list keys. Fixes #57
1 parent c59ecd0 commit f66d317

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/AppsPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ export function AppsPanel({ appId, appName, fqn, nodeName, namespace, componentI
278278
<div className="space-y-2">
279279
{topics.map((topic, idx) => {
280280
const cleanName = topic.topic.startsWith('/') ? topic.topic.slice(1) : topic.topic;
281-
const encodedName = encodeURIComponent(topic.uniqueKey || cleanName);
281+
const encodedName = encodeURIComponent(cleanName);
282282
const topicPath = `${path}/data/${encodedName}`;
283283

284284
return (

0 commit comments

Comments
 (0)