Upd memory adapter to work with undefined in dataset
This commit is contained in:
parent
2fa07e8e1d
commit
b59fb01b4a
|
@ -130,6 +130,8 @@ function applyFilter(filter) {
|
||||||
if (typeof value === 'string' && example && example.constructor.name === 'RegExp') {
|
if (typeof value === 'string' && example && example.constructor.name === 'RegExp') {
|
||||||
return value.match(example);
|
return value.match(example);
|
||||||
}
|
}
|
||||||
|
if (typeof example === 'undefined') return undefined;
|
||||||
|
if (typeof value === 'undefined') return undefined;
|
||||||
// not strict equality
|
// not strict equality
|
||||||
return (example !== null ? example.toString() : example) == (value !== null ? value.toString() : value);
|
return (example !== null ? example.toString() : example) == (value !== null ? value.toString() : value);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue