Skip to content

Commit 33cb602

Browse files
committed
Merge branch 'fix/type-checking' into 'master'
Fix/type checking See merge request datopian/clients/nhs-dataexplorer!26
2 parents a35fd17 + a2e56c8 commit 33cb602

File tree

1 file changed

+4
-8
lines changed
  • ckanext/dataexplorer/public/vendor/recline

1 file changed

+4
-8
lines changed

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

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5055,18 +5055,14 @@ this.recline.View = this.recline.View || {};
50555055
return where_str;
50565056
},
50575057
get_field_type: function (key, value, model_fields) {
5058-
var num_types = ["number", "NUMBER",
5059-
"integer", "INTEGER",
5060-
"bigint", "BIGINT"];
5061-
5058+
var string_types = ["string", "STRING"]
50625059
var type = model_fields.get(key).attributes.type
50635060

5064-
if (num_types.includes(type)){
5065-
return "num";
5066-
} else{
5061+
if (string_types.includes(type)){
50675062
return "string";
5063+
} else{
5064+
return "num";
50685065
}
5069-
50705066
},
50715067
});
50725068
})(jQuery, recline.View);

0 commit comments

Comments
 (0)