mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2026-04-05 04:14:26 +00:00
fix #1044
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user