diff --git a/packages/react-bootstrap-table2/src/store/type.js b/packages/react-bootstrap-table2/src/store/type.js index b5084e6..5b98498 100644 --- a/packages/react-bootstrap-table2/src/store/type.js +++ b/packages/react-bootstrap-table2/src/store/type.js @@ -1,7 +1,7 @@ import Const from '../const'; export const typeConvert = (type, value) => { - if (!type || type === Const.TYPE_STRING) { + if (type === Const.TYPE_STRING) { return String(value); } else if (type === Const.TYPE_NUMBER) { return Number(value);