Merge pull request #203 from getmaxun/robot-limit
fix: min edit robot limit set to be 1
This commit is contained in:
@@ -155,9 +155,13 @@ export const RobotEditModal = ({ isOpen, handleStart, handleClose, initialSettin
|
|||||||
label="Robot Limit"
|
label="Robot Limit"
|
||||||
type="number"
|
type="number"
|
||||||
value={robot.recording.workflow[0].what[0].args[0].limit || ''}
|
value={robot.recording.workflow[0].what[0].args[0].limit || ''}
|
||||||
onChange={(e) =>
|
onChange={(e) =>{
|
||||||
handleLimitChange(parseInt(e.target.value, 10) || 0)
|
const value = parseInt(e.target.value, 10);
|
||||||
}
|
if (value >= 1) {
|
||||||
|
handleLimitChange(value);
|
||||||
|
}
|
||||||
|
}}
|
||||||
|
inputProps={{ min: 1 }}
|
||||||
style={{ marginBottom: '20px' }}
|
style={{ marginBottom: '20px' }}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user