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>
|
</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) => {
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
@@ -282,7 +282,7 @@ function convertToNode(
|
|||||||
type: "wait",
|
type: "wait",
|
||||||
data: {
|
data: {
|
||||||
...commonData,
|
...commonData,
|
||||||
waitInSeconds: block.wait_sec ?? 0,
|
waitInSeconds: block.wait_sec ?? 1,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user