Skip to content

Commit 831713d

Browse files
committed
included console logs to get the data type of node list and current snapshot
1 parent 970dd04 commit 831713d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/app/components/StateRoute/ComponentMap/ComponentMap.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,10 @@ export default function ComponentMap({
168168
};
169169

170170
collectNodes(currentSnapshot);
171+
172+
console.log('nodelist: ', nodeList);
173+
console.log('currentSnapshot component map: ', currentSnapshot);
174+
171175
// @ts
172176
// find the node that has been selected and use it as the root
173177
let startNode = null;
@@ -184,8 +188,6 @@ export default function ComponentMap({
184188

185189
findSelectedNode(); // locates the rootNode... do we really need this? This function is only used once... it's here.
186190

187-
console.log('startNode: ', startNode);
188-
189191
// controls for the map
190192
const LinkComponent: React.ComponentType<unknown> = getLinkComponent({
191193
layout,
@@ -258,8 +260,6 @@ export default function ComponentMap({
258260

259261
if (layout === 'polar') {
260262
const [radialX, radialY] = pointRadial(node.x, node.y);
261-
console.log('component map, radial x y', radialX, radialY);
262-
console.log('component map node.x, node.y:', node.x, node.y);
263263
top = radialY;
264264
left = radialX;
265265
} else if (orientation === 'vertical') {

0 commit comments

Comments
 (0)