mirror of https://github.com/OCA/web.git
has to explicit check for type of value !== null
has to explicit check for type of value !== null as the typeof null is object https://i.stack.imgur.com/FzI1R.pngpull/2017/head
parent
a32ebf24cd
commit
17995dbf51
|
@ -27,7 +27,7 @@ odoo.define('web_edit_user_filter', function (require) {
|
||||||
json_facet.values = facet.get('values');
|
json_facet.values = facet.get('values');
|
||||||
|
|
||||||
_.each(json_facet.values, function (value, i) {
|
_.each(json_facet.values, function (value, i) {
|
||||||
if (typeof value.value === 'object' &&
|
if (typeof value.value === 'object' && typeof value.value !== null &&
|
||||||
'attrs' in value.value) {
|
'attrs' in value.value) {
|
||||||
json_facet.values[i] = {
|
json_facet.values[i] = {
|
||||||
attrs: value.value.attrs,
|
attrs: value.value.attrs,
|
||||||
|
|
Loading…
Reference in New Issue