@@ -94,9 +94,17 @@ const RouterKeyConfig = ({ routerNodeId, routerKeyDef }: RouterKeyProps) => {
9494 const handleUpdates = useMemo (
9595 ( ) =>
9696 debounce ( ( attrName : string , value : string ) => {
97- updateContentRouterKey ( routerNodeId , routerKeyDef . name , attrName , value )
97+ updateContentRouterKey (
98+ routerNodeId ,
99+ {
100+ namespace : routerKeyDef . eipId . namespace ,
101+ name : routerKeyDef . eipId . name ,
102+ } ,
103+ attrName ,
104+ value
105+ )
98106 } , 300 ) ,
99- [ routerNodeId , routerKeyDef . name ]
107+ [ routerNodeId , routerKeyDef . eipId . name , routerKeyDef . eipId . namespace ]
100108 )
101109
102110 const required = routerKeyDef . attributesDef
@@ -130,7 +138,7 @@ const RouterKeyConfig = ({ routerNodeId, routerKeyDef }: RouterKeyProps) => {
130138 title = "Key"
131139 helperText = {
132140 routerKeyDef . attributesDef . length !== 1
133- ? routerKeyDef . name
141+ ? routerKeyDef . eipId . name
134142 : "Targeted by the matcher"
135143 }
136144 />
@@ -142,7 +150,7 @@ const RouterKeyConfig = ({ routerNodeId, routerKeyDef }: RouterKeyProps) => {
142150
143151// TODO: Allow mapping multiple values to the same channel
144152const EdgeMatcher = ( { edgeId, mapping } : EdgeMatcherProps ) => {
145- const { mapperName , matcher, matcherValue } = mapping
153+ const { mapperId , matcher, matcherValue } = mapping
146154
147155 const handleUpdates = useMemo (
148156 ( ) =>
@@ -155,7 +163,7 @@ const EdgeMatcher = ({ edgeId, mapping }: EdgeMatcherProps) => {
155163 return (
156164 < Section >
157165 < Stack gap = { 6 } >
158- < SectionHeading title = "Matcher" helperText = { mapperName } />
166+ < SectionHeading title = "Matcher" helperText = { mapperId . name } />
159167 < DescriptionTooltipWrapper
160168 key = { matcher . name }
161169 id = { matcher . name }
0 commit comments