choose no longer asks for missing values

This commit is contained in:
ari committed 2022-07-12 21:15:34 -04:00
1 parent befe293f1c
commit 2d78319683
2 files changed
+7 -9

No files matched your search

@@ -1,6 +1,5 @@
import { ChooseAction } from "types/automations/actions";
import { OptionManager } from './OptionManager';
import { OptionManager } from "./OptionManager";
export const ActionChooseState: OptionManager<ChooseAction> = {
defaultState: () => ({
@@ -8,11 +7,8 @@ export const ActionChooseState: OptionManager<ChooseAction> = {
default: [],
choose: [],
}),
isReady: ({ alias }) => {
return alias !== ''
isReady: () => true,
Component: () => {
return <></>;
},
renderOptionList: () => {
return <>
</>
}
}
};
@@ -51,6 +51,8 @@ export const NodeEditor: FC<NodeEditorProps> = ({
if (notes.length > 0) {
try {
await confirm({
confirmationText: "Yes",
title: `Are you sure you want to ${what}?`,
description: (
<ul>
{notes.map((n, i) => (