Canvas: Address connection vertex bug (#85026)

pull/84397/head
Nathan Marrs 1 year ago committed by GitHub
parent 076dd53a40
commit cdb64cb7eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      public/app/plugins/panel/canvas/components/connections/Connections.tsx

@ -392,7 +392,7 @@ export class Connections {
const vertexIndex = this.selectedVertexIndex;
if (connectionIndex !== undefined && vertexIndex !== undefined) {
const currentSource = this.scene.connections.state[connectionIndex].source;
const currentSource = this.selection.value!.source;
if (currentSource.options.connections) {
const currentConnections = [...currentSource.options.connections];
if (currentConnections[connectionIndex].vertices) {
@ -521,7 +521,7 @@ export class Connections {
const vertexIndex = this.selectedVertexIndex;
if (connectionIndex !== undefined && vertexIndex !== undefined) {
const currentSource = this.scene.connections.state[connectionIndex].source;
const currentSource = this.selection.value!.source;
if (currentSource.options.connections) {
const currentConnections = [...currentSource.options.connections];
const newVertex = { x: (x - x1) / (x2 - x1), y: (y - y1) / (y2 - y1) };

Loading…
Cancel
Save