Skip to content

Commit

Permalink
Merge pull request #17 from sc420/14-run-tests-by-github-actions
Browse files Browse the repository at this point in the history
rename the function
  • Loading branch information
sc420 authored Sep 2, 2023
2 parents abd9cb8 + 767b40a commit a7cb656
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ import {
addReactFlowNode,
deselectLastSelectedNode,
findRemovedEdges,
getLastSelectedNodeId,
getNewReactFlowNodePosition,
hideInputField,
selectReactFlowNode,
showInputFields,
updateLastSelectedNodeId,
updateReactFlowNodeDarkMode,
updateReactFlowNodeDerivatives,
updateReactFlowNodeFValues,
Expand Down Expand Up @@ -483,7 +483,7 @@ const GraphContainer: FunctionComponent<GraphContainerProps> = ({

const handleSelectionChange = useCallback(
(params: OnSelectionChangeParams): void => {
setLastSelectedNodeId(updateLastSelectedNodeId(params.nodes));
setLastSelectedNodeId(getLastSelectedNodeId(params.nodes));
},
[],
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ const updateReactFlowNodeDarkMode = (
});
};

const updateLastSelectedNodeId = (nodes: Node[]): string | null => {
const getLastSelectedNodeId = (nodes: Node[]): string | null => {
const firstNode = nodes.find((node) => "id" in node) ?? null;
if (firstNode === null) {
return null;
Expand Down Expand Up @@ -388,11 +388,11 @@ export {
addReactFlowNode,
deselectLastSelectedNode,
findRemovedEdges,
getLastSelectedNodeId,
getNewReactFlowNodePosition,
hideInputField,
selectReactFlowNode,
showInputFields,
updateLastSelectedNodeId,
updateReactFlowNodeDarkMode,
updateReactFlowNodeDerivatives,
updateReactFlowNodeFValues,
Expand Down

0 comments on commit a7cb656

Please sign in to comment.