Wait min time should be 1 sec (#1267)

Co-authored-by: Muhammed Salih Altun <muhammedsalihaltun@gmail.com>
This commit is contained in:
Shuchang Zheng
2024-11-26 07:47:29 -08:00
committed by GitHub
parent 7bc6ec8e46
commit 38c42b6b48
3 changed files with 3 additions and 3 deletions

View File

@@ -76,7 +76,7 @@ function WaitNode({ id, data }: NodeProps<WaitNode>) {
</div> </div>
<Input <Input
type="number" type="number"
min="0" min="1"
max="300" max="300"
value={inputs.waitInSeconds} value={inputs.waitInSeconds}
onChange={(event) => { onChange={(event) => {

View File

@@ -11,7 +11,7 @@ export const waitNodeDefaultData: WaitNodeData = {
label: "", label: "",
continueOnFailure: false, continueOnFailure: false,
editable: true, editable: true,
waitInSeconds: 0, waitInSeconds: 1,
}; };
export function isWaitNode(node: Node): node is WaitNode { export function isWaitNode(node: Node): node is WaitNode {

View File

@@ -282,7 +282,7 @@ function convertToNode(
type: "wait", type: "wait",
data: { data: {
...commonData, ...commonData,
waitInSeconds: block.wait_sec ?? 0, waitInSeconds: block.wait_sec ?? 1,
}, },
}; };
} }