FIX: `topic.details` is not a plain JS Object

This commit is contained in:
Robin Ward 2020-07-15 13:10:05 -04:00
parent a37a19b55c
commit 16766a5d62
2 changed files with 3 additions and 1 deletions

View File

@ -554,6 +554,7 @@ const Topic = RestModel.extend({
}
}
keys.forEach(key => this.set(key, json[key]));
return this;
},
reload() {

View File

@ -5,7 +5,8 @@ import Topic from "discourse/models/topic";
const buildTopic = function(level, archetype = "regular") {
return Topic.create({
id: 4563,
id: 4563
}).updateFromJson({
title: "Qunit Test Topic",
details: {
notification_level: level