Skip to content

Commit 1cc4c9f

Browse files
committed
More changes needed for integer, so will handle separately
1 parent ed2322d commit 1cc4c9f

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

modules/st2-auto-form/fields/integer.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import validator from 'validator';
1616

17-
import { BaseTextField, isJinja, isYaql } from './base';
17+
import { BaseTextField, isJinja } from './base';
1818

1919
export default class IntegerField extends BaseTextField {
2020
static icon = '12'
@@ -24,10 +24,6 @@ export default class IntegerField extends BaseTextField {
2424
return v;
2525
}
2626

27-
if (isYaql(v)) {
28-
return v;
29-
}
30-
3127
if (this.props.name === 'timeout' || this.props.name === 'limit') {
3228
return v ;
3329
}
@@ -41,10 +37,6 @@ export default class IntegerField extends BaseTextField {
4137
return v;
4238
}
4339

44-
if (isYaql(v)) {
45-
return v;
46-
}
47-
4840
return v ? v.toString(10) : '';
4941
}
5042

0 commit comments

Comments
 (0)