Skip to content
Snippets Groups Projects
Commit 36151759 authored by Maximilian Giller's avatar Maximilian Giller :squid:
Browse files

Reintroduced number ids, since it is actually useful

parent 21db53c1
No related branches found
No related tags found
1 merge request!2Implemented editor in the react framework
Pipeline #56563 passed
......@@ -96,8 +96,8 @@ export class Link extends GraphElement {
public static parse(raw: any): Link {
const link: Link = new Link();
link.sourceId = raw.source;
link.targetId = raw.target;
link.sourceId = Number(raw.source);
link.targetId = Number(raw.target);
return link;
}
......
......@@ -94,7 +94,7 @@ export class Node extends GraphElement {
public static parse(raw: any): Node {
const node: Node = new Node();
node.id = raw.id;
node.id = Number(raw.id);
node.label = raw.name;
node.description = raw.description;
node.type = NodeType.parse(raw.type);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment