Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

Commit 5e87f04

Browse files
committed
Allowing numbers pass-thru. Fixes #487
1 parent 28b1b23 commit 5e87f04

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/constants/control-props-map.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ import actions from '../actions';
33

44
function createControlPropsMap() {
55
function getTextValue(value) {
6-
if (typeof value === 'string' || typeof value === 'number') {
6+
if (typeof value === 'string') {
77
return `${value}`;
8+
} else if (typeof value === 'number') {
9+
return value;
810
}
911

1012
return '';

0 commit comments

Comments
 (0)