fixes #222
It's quite simple obviously fields can not only be null but also undefined....
This commit is contained in:
parent
881fee5fe7
commit
fbea51030b
2
dist/recline.dataset.js
vendored
2
dist/recline.dataset.js
vendored
@ -733,7 +733,7 @@ this.recline.Backend.Memory = this.recline.Backend.Memory || {};
|
||||
var foundmatch = false;
|
||||
_.each(self.fields, function(field) {
|
||||
var value = rawdoc[field.id];
|
||||
if (value !== null) {
|
||||
if ((value !== null) && (value !== undefined)) {
|
||||
value = value.toString();
|
||||
} else {
|
||||
// value can be null (apparently in some cases)
|
||||
|
||||
2
dist/recline.js
vendored
2
dist/recline.js
vendored
@ -1038,7 +1038,7 @@ this.recline.Backend.Memory = this.recline.Backend.Memory || {};
|
||||
var foundmatch = false;
|
||||
_.each(self.fields, function(field) {
|
||||
var value = rawdoc[field.id];
|
||||
if (value !== null) {
|
||||
if ((value !== null) && (value !== undefined)) {
|
||||
value = value.toString();
|
||||
} else {
|
||||
// value can be null (apparently in some cases)
|
||||
|
||||
@ -148,7 +148,7 @@ this.recline.Backend.Memory = this.recline.Backend.Memory || {};
|
||||
var foundmatch = false;
|
||||
_.each(self.fields, function(field) {
|
||||
var value = rawdoc[field.id];
|
||||
if (value !== null) {
|
||||
if ((value !== null) && (value !== undefined)) {
|
||||
value = value.toString();
|
||||
} else {
|
||||
// value can be null (apparently in some cases)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user