FIX: Intializer regression (#193)
This commit is contained in:
parent
7c50330e04
commit
4a3ceaca9c
|
@ -1,5 +1,5 @@
|
|||
import Category from "discourse/models/category";
|
||||
import { computed } from "@ember/object";
|
||||
import { computed, get } from "@ember/object";
|
||||
|
||||
export default {
|
||||
name: "extend-category-for-solved",
|
||||
|
@ -12,7 +12,7 @@ export default {
|
|||
"custom_fields.enable_accepted_answers",
|
||||
{
|
||||
get(fieldName) {
|
||||
return this.get(this.custom_fields, fieldName) === "true";
|
||||
return get(this.custom_fields, fieldName) === "true";
|
||||
},
|
||||
}
|
||||
),
|
||||
|
|
Loading…
Reference in New Issue