message: Bug Topologgy fix for service binding requests with no backingServiceSelector
diff: @@ -182,25 +182,25 @@ export const getTopologyEdgeItems = (
  // look for multiple backing services first in `backingServiceSelectors`
  // followed by a fallback to the single reference in `backingServiceSelector`
  _.forEach(sbr.spec.backingServiceSelectors || [sbr.spec.backingServiceSelector], (bss) => {
  + if (bss) {
  // handles multiple edges
  - const targetNode = _.get(
  - _.find(resources, (deployment) => {
  - const name = _.get(deployment, 'metadata.ownerReferences[0].name');
  - const kind = _.get(deployment, 'metadata.ownerReferences[0].kind');
  - return bss.kind === kind && bss.resourceRef === name;
  - }),
  - ['metadata', 'uid'],
  + const targetResource = resources.find(
  + (deployment) =>
  + deployment?.metadata?.ownerReferences?.[0]?.kind === bss.kind &&
  + deployment?.metadata?.ownerReferences?.[0]?.name === bss.resourceRef,
  );
  - const uid = _.get(dc, ['metadata', 'uid']);
  - if (targetNode) {
  + const target = targetResource?.metadata?.uid;
  + const source = dc?.metadata?.uid;
  + if (source && target) {
  edges.push({
  - id: `${uid}_${targetNode}`,
  + id: `${source}_${target}`,
  type: TYPE_SERVICE_BINDING,
  - source: uid,
  - target: targetNode,
  + source,
  + target,
  data: { sbr },
  });
  }
  + }
  });
  });
  