Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
asosnovsky committed Sep 24, 2022
1 parent 8a6415a commit a5aec24
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 23 deletions.
18 changes: 0 additions & 18 deletions webapp/src/components/DAGGraph/NodesRow/index.tsx
@@ -1,22 +1,5 @@
import "./index.css";

//* <div className="nodes-row--inner row">
// {data.map((node, i) => {
// return (
// <SequenceNodeElement
// key={i}
// {...makeCollectionNodeMakerChildProps(
// collectionType,
// node,
// i,
// stateUpdater,
// namer
// )}
// />
// );
// })}
// </div>*/

import { AutomationNode, AutomationNodeMapping } from "types/automations";
import { useHA } from "services/ha";
import { CollectionNodeElement } from "components/DAGGraph/nodes/CollectionNode/CollectionNodeElement";
Expand All @@ -26,7 +9,6 @@ import { makeCollectionNodeMakerChildProps } from "components/DAGGraph/elements/
import { AutomationCondition } from "types/automations/conditions";
import { AutomationTrigger } from "types/automations/triggers";
import { FC } from "react";
import { SequenceNodeElement } from "components/DAGGraph/nodes/SequenceNode/SequenceNodeElement";

export type NodesRowProps<
K extends keyof AutomationNodeMapping,
Expand Down
5 changes: 2 additions & 3 deletions webapp/src/components/DAGGraph/board/index.tsx
@@ -1,8 +1,8 @@
import "./index.css";

import { FC, useEffect } from "react";
import { FC } from "react";
import CircularProgress from "@mui/material/CircularProgress";
import ReactFlow, { Controls, useReactFlow } from "react-flow-renderer";
import ReactFlow, { Controls } from "react-flow-renderer";

import { NodeEditor } from "components/NodeEditor";
import { Modal } from "components/Modal";
Expand All @@ -16,7 +16,6 @@ export const DAGGraphBoard: FC<DAGGraphBoardProps> = ({
closeModal,
additionalControls,
}) => {
const reactFlow = useReactFlow();
// render unready or errored states
if (!state.ready) {
return (
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/components/DAGGraph/elements/helpers.tsx
Expand Up @@ -7,7 +7,7 @@ import { validateNode } from "utils/automations";
import { AutomationCondition } from "types/automations/conditions";
import { AutomationTrigger } from "types/automations/triggers";

import { DAGDims, ElementMaker, ElementMakerProps, Size } from "./types";
import { DAGDims, ElementMaker, ElementMakerProps } from "./types";
import { DAGElementsOutputState } from "./outputState";
import { convertFailuresToSequenceNodeDataProps } from "./util";

Expand Down
2 changes: 1 addition & 1 deletion webapp/src/components/DAGGraph/index.tsx
Expand Up @@ -8,7 +8,7 @@ import { DEFAULT_DIMS } from "./elements/constants";
import { DAGGraphBoard } from "./board";
import { AutomationTrigger } from "types/automations/triggers";
import { AutomationCondition } from "types/automations/conditions";
import { NodesRow, TriggerConditionNodeRow } from "./NodesRow";
import { TriggerConditionNodeRow } from "./NodesRow";

export const DAGAutomationGraph: FC<{
action: AutomationSequenceNode[];
Expand Down

0 comments on commit a5aec24

Please sign in to comment.