FIX: Intializer regression (#193)

This commit is contained in:
Jarek Radosz 2022-03-07 00:19:21 +01:00 committed by GitHub
parent 7c50330e04
commit 4a3ceaca9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
import Category from "discourse/models/category"; import Category from "discourse/models/category";
import { computed } from "@ember/object"; import { computed, get } from "@ember/object";
export default { export default {
name: "extend-category-for-solved", name: "extend-category-for-solved",
@ -12,7 +12,7 @@ export default {
"custom_fields.enable_accepted_answers", "custom_fields.enable_accepted_answers",
{ {
get(fieldName) { get(fieldName) {
return this.get(this.custom_fields, fieldName) === "true"; return get(this.custom_fields, fieldName) === "true";
}, },
} }
), ),