From 242678a2cc4efdc62f1761ebf8a82c4f2c469f20 Mon Sep 17 00:00:00 2001
From: Max <m.giller.dev@gmail.com>
Date: Fri, 1 Oct 2021 00:50:30 +0200
Subject: [PATCH] Fixed bug with undefined constants

---
 editor/js/graph.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/editor/js/graph.js b/editor/js/graph.js
index 16aaef2..53a27b5 100644
--- a/editor/js/graph.js
+++ b/editor/js/graph.js
@@ -403,12 +403,12 @@ export class Graph extends ManagedData {
         }
 
         if (item.node) {
-            return item[Graph.NODE_LABEL];
+            return item[NODE_LABEL];
         } else if (item.link) {
             return (
-                Graph.toStr(item[Graph.LINK_SOURCE]) +
+                Graph.toStr(item[LINK_SOURCE]) +
                 LINK_NAME_CONNECTOR +
-                Graph.toStr(item[Graph.LINK_TARGET])
+                Graph.toStr(item[LINK_TARGET])
             );
         } else {
             return "UNDEFINED";
-- 
GitLab