chore(ui): lint

This commit is contained in:
psychedelicious
2024-05-16 23:44:41 +10:00
parent a8b042177d
commit 6791b4eaa8
6 changed files with 19 additions and 116 deletions

View File

@ -70,7 +70,14 @@ export const useConnection = () => {
}
const candidateTemplate = templates[candidateNode.data.type];
assert(candidateTemplate, `Template not found for node type: ${candidateNode.data.type}`);
const connection = getFirstValidConnection(templates, nodes, edges, pendingConnection, candidateNode, candidateTemplate);
const connection = getFirstValidConnection(
templates,
nodes,
edges,
pendingConnection,
candidateNode,
candidateTemplate
);
if (connection) {
dispatch(connectionMade(connection));
}

View File

@ -1,6 +1,12 @@
import { getStore } from 'app/store/nanostores/store';
import { deepClone } from 'common/util/deepClone';
import { $copiedEdges,$copiedNodes,$cursorPos, selectionPasted, selectNodesSlice } from 'features/nodes/store/nodesSlice';
import {
$copiedEdges,
$copiedNodes,
$cursorPos,
selectionPasted,
selectNodesSlice,
} from 'features/nodes/store/nodesSlice';
import { findUnoccupiedPosition } from 'features/nodes/store/util/findUnoccupiedPosition';
import { v4 as uuidv4 } from 'uuid';