DEV: attempt a more cautious lookup
This was failing the test suite somehow, despite voting using the same pattern.
This commit is contained in:
parent
e0de9238a1
commit
68ff24739b
|
@ -10,8 +10,11 @@ export default {
|
||||||
enable_unassigned_filter: Ember.computed(
|
enable_unassigned_filter: Ember.computed(
|
||||||
"custom_fields.enable_unassigned_filter",
|
"custom_fields.enable_unassigned_filter",
|
||||||
{
|
{
|
||||||
get(fieldName) {
|
get() {
|
||||||
return Ember.get(this.custom_fields, fieldName) === "true";
|
if (this && this.custom_fields) {
|
||||||
|
return this.custom_fields.enable_unassigned_filter === "true";
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue