fix
This commit is contained in:
1 parent
8a6415a58b
commit
a5aec24686
4 files changed
+4
-23
No files matched your search
@@ -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";
|
||||
@@ -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,
|
||||
|
||||
@@ -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";
|
||||
@@ -16,7 +16,6 @@ export const DAGGraphBoard: FC<DAGGraphBoardProps> = ({
|
||||
closeModal,
|
||||
additionalControls,
|
||||
}) => {
|
||||
const reactFlow = useReactFlow();
|
||||
// render unready or errored states
|
||||
if (!state.ready) {
|
||||
return (
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -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[];
|
||||
|
||||
Reference in new issue
Block a user