Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

fix object node shrink

AykutSarace1fc30b09527
diff --git a/src/components/CustomNode/ObjectNode.tsx b/src/components/CustomNode/ObjectNode.tsx
index bf5a18d9..294d7a02 100644
--- a/src/components/CustomNode/ObjectNode.tsx
+++ b/src/components/CustomNode/ObjectNode.tsx
@@ -49,7 +49,7 @@ const ObjectNode: React.FC<ObjectNodeProps> = ({
};
function propsAreEqual(prev: ObjectNodeProps, next: ObjectNodeProps) {
- return String(prev.value) === String(next.value);
+ return String(prev.value) === String(next.value) && prev.width === next.width;
}
export default React.memo(ObjectNode, propsAreEqual);