Wait min time should be 1 sec (#1267)
Co-authored-by: Muhammed Salih Altun <muhammedsalihaltun@gmail.com>
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -282,7 +282,7 @@ function convertToNode(
|
||||
type: "wait",
|
||||
data: {
|
||||
...commonData,
|
||||
waitInSeconds: block.wait_sec ?? 0,
|
||||
waitInSeconds: block.wait_sec ?? 1,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user