support for malformed automations

This commit is contained in:
ari committed 2022-05-17 20:48:43 -04:00
1 parent 6c57408f27
commit a19db93c37
35 files changed
+683 -161

No files matched your search

@@ -8,10 +8,6 @@ import InputYaml from 'components/Inputs/InputYaml';
type UseState = <S>(s: S) => [S, Dispatch<SetStateAction<S>>]
const mockUseState: UseState = s => {
return [s, () => { }]
}
export const useEditorNodeState = (originalNode: AutomationNode, uState: UseState = useState) => {
const [allState, setAllState] = uState({
node: originalNode,
@@ -1,5 +1,4 @@
import { AutomationNodeSubtype, AutomationNodeTypes } from "types/automations";
import { ActionType } from "types/automations/actions";
import { AutomationNode } from '../../types/automations/index';