Skip to content
Snippets Groups Projects
Commit 4c55f81e authored by Marcos Pieras's avatar Marcos Pieras Committed by Leonardo Christino
Browse files

fix: schema pop up relationship showing attr

parent 59d9024e
No related branches found
Tags v1.112.1
1 merge request!305Fix/schema pop up relationship showing attr
Pipeline #141358 passed
......@@ -64,6 +64,9 @@ export function schemaGraphology2Reactflow(
export function createReactFlowNodes(graph: Graph): Array<Node> {
const nodeElements: Array<Node> = [];
graph.forEachNode((node: string, attributes: Attributes): void => {
if (!Array.isArray(attributes.attributes)) {
attributes.attributes = Object.values(attributes.attributes);
}
const newNode: Node = {
id: node,
data: {
......@@ -74,7 +77,6 @@ export function createReactFlowNodes(graph: Graph): Array<Node> {
};
nodeElements.push(newNode);
});
return nodeElements;
}
......
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