Skip to content

Commit 28145c9

Browse files
committed
fix(ui): use connectionType rather than role for identifying content-based routers
1 parent c9ebd9c commit 28145c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/src/singletons/store.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ const useStore = create<AppStore>()(
172172
const sourceComponent =
173173
sourceNode && lookupEipComponent(sourceNode.data.eipId)
174174
const edge =
175-
sourceComponent?.role === "router"
175+
sourceComponent?.connectionType === "content_based_router"
176176
? createDynamicRoutingEdge(connection, sourceComponent)
177177
: connection
178178
return {
@@ -638,7 +638,7 @@ const diagramToEipFlow = (state: AppStore): EipFlow => {
638638

639639
const routerKey = state.eipNodeConfigs[node.id].routerKey
640640
const routerKeyAttrs =
641-
eipComponent.role === "router" && routerKey
641+
eipComponent.connectionType === "content_based_router" && routerKey
642642
? getRouterKeyAttributes(node.data.eipId, routerKey)
643643
: {}
644644

0 commit comments

Comments
 (0)