Skip to content

Commit eb3445e

Browse files
committed
[xs][fix] - Fix sql search type checking.
1 parent 59b4936 commit eb3445e

File tree

1 file changed

+5
-3
lines changed
  • ckanext/dataexplorer/public/vendor/recline

1 file changed

+5
-3
lines changed

ckanext/dataexplorer/public/vendor/recline/recline.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5054,11 +5054,13 @@ this.recline.View = this.recline.View || {};
50545054
return where_str;
50555055
},
50565056
get_field_type: function (value) {
5057-
if (isNaN(Number(value))) {
5058-
return "string";
5059-
} else {
5057+
5058+
if (typeof value === "number"){
50605059
return "num";
5060+
} else{
5061+
return "string";
50615062
}
5063+
50625064
},
50635065
});
50645066
})(jQuery, recline.View);

0 commit comments

Comments
 (0)