fix: 🐛 Fix undefined values from resource filter (#1622)
* fix: 🐛 Fix undefined values from resource filter
This commit is contained in:
1 parent
82bee42959
commit
e6548f4d59
1 file changed
+7
-4
@@ -60,12 +60,15 @@ class RouteResourceFilter extends EmberObject {
|
||||
JSON.stringify(this.defaultValue);
|
||||
const value = decodedValue ? JSON.parse(decodedValue) : null;
|
||||
const deserializedValue = value
|
||||
? value.map((serializedValue) =>
|
||||
this.allowedValues.find((item) =>
|
||||
this.deserializeValue(item, serializedValue)
|
||||
? value
|
||||
.map((serializedValue) =>
|
||||
this.allowedValues.find((item) =>
|
||||
this.deserializeValue(item, serializedValue)
|
||||
)
|
||||
)
|
||||
)
|
||||
.filter((value) => value !== undefined)
|
||||
: null;
|
||||
|
||||
return deserializedValue;
|
||||
}
|
||||
set value(value) {
|
||||
|
||||
Reference in new issue
Block a user