@eventcatalog/visualiser 5.0.0-beta.8 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15120,10 +15120,14 @@ var NodeGraphBuilder = ({
15120
15120
  (link) => window.location.href.includes(link.url)
15121
15121
  )?.url || links[0].url,
15122
15122
  onChange: (e) => {
15123
+ const url = links.find(
15124
+ (link) => link.url === e.target.value
15125
+ )?.url;
15126
+ if (!url) return;
15123
15127
  if (onNavigate) {
15124
- onNavigate(e.target.value);
15128
+ onNavigate(url);
15125
15129
  } else {
15126
- window.location.href = e.target.value;
15130
+ window.location.href = url;
15127
15131
  }
15128
15132
  },
15129
15133
  className: "appearance-none pl-7 pr-6 py-0 text-[14px] bg-[rgb(var(--ec-card-bg))] text-[rgb(var(--ec-page-text))] rounded-md border border-[rgb(var(--ec-page-border))] hover:bg-[rgb(var(--ec-page-border)/0.5)] focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-[rgb(var(--ec-accent))]",
@@ -15702,4 +15706,4 @@ export {
15702
15706
  edgeTypes,
15703
15707
  exportNodeGraphForStudio
15704
15708
  };
15705
- //# sourceMappingURL=chunk-Y2IJ5XR6.mjs.map
15709
+ //# sourceMappingURL=chunk-6OORHWMU.mjs.map