mirror of
https://github.com/grafana/grafana.git
synced 2024-11-22 08:56:43 -06:00
Canvas: Address connection vertex bug (#85026)
This commit is contained in:
parent
076dd53a40
commit
cdb64cb7eb
@ -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…
Reference in New Issue
Block a user