We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff31e5a commit 3238e25Copy full SHA for 3238e25
2 files changed
spa/src/components/overview/ContextMap.tsx
@@ -51,12 +51,13 @@ export function ContextMap() {
51
const sourceKey = `${ctx.name}/${mod.name}`;
52
(mod.externalCalls ?? []).forEach(call => {
53
const targetKey = `${call.targetContext}/${call.targetModule}`;
54
- if (modIndex[targetKey] !== undefined) {
+ const type = call.type === 'query' ? 'query' : 'command';
55
+ if (modIndex[targetKey] !== undefined && !rels.some(r => r.from === sourceKey && r.to === targetKey && r.type === type)) {
56
rels.push({
57
from: sourceKey,
58
to: targetKey,
- type: call.type === 'query' ? 'query' : 'command',
59
- label: call.type === 'query' ? 'Query Bus' : 'Command Bus',
+ type,
60
+ label: type === 'query' ? 'Query Bus' : 'Command Bus',
61
});
62
}
63
0 commit comments