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>
<Input
type="number"
min="0"
min="1"
max="300"
value={inputs.waitInSeconds}
onChange={(event) => {

View File

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

View File

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