From 119b98031449a7e96573671af83b9e3a3a55435e Mon Sep 17 00:00:00 2001
From: Maximilian Giller <m.giller@tu-bs.de>
Date: Tue, 19 Jul 2022 00:33:32 +0200
Subject: [PATCH] Fixes equals method to be based on id instead of name

---
 src/editor/js/structures/graph/nodetype.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/editor/js/structures/graph/nodetype.ts b/src/editor/js/structures/graph/nodetype.ts
index 78362ea..75b464d 100644
--- a/src/editor/js/structures/graph/nodetype.ts
+++ b/src/editor/js/structures/graph/nodetype.ts
@@ -54,6 +54,6 @@ export class NodeType extends GraphElement {
 
         const type = other as NodeType;
 
-        return type.name === this.name;
+        return type.id === this.id;
     }
 }
-- 
GitLab