Skip to content

Commit 9dc5ec7

Browse files
committed
#387 move variable inside component
1 parent 247f9ab commit 9dc5ec7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

webapp/components/experiments/ExperimentEdit.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ import DialogBox from '../general/DialogBox';
3030
const RANGE_VALUE = 0;
3131
const SUPPORTED_TYPES = [REAL_TYPE.INT, REAL_TYPE.FLOAT, REAL_TYPE.STR, REAL_TYPE.BOOL];
3232
const MAX_TRIALS = 100;
33-
let numberOfTrials = 1;
3433

3534
const {
3635
RANGE,
@@ -198,6 +197,8 @@ const ExperimentEdit = (props) => {
198197
const [experiment, setExperiment] = useState(null);
199198
const experiments = useSelector((state) => state.experiments.experiments);
200199

200+
let numberOfTrials = 1;
201+
201202
const validateParameter = (param) => {
202203
let updatedParam = param;
203204
if (param.type === LIST) {

0 commit comments

Comments
 (0)