mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 20:24:05 -06:00
FIX: on create you could not add a theme component
This commit is contained in:
parent
dcf9459b7c
commit
a9b953ac5a
@ -73,6 +73,10 @@ const Theme = RestModel.extend({
|
||||
|
||||
addChildTheme(theme){
|
||||
let childThemes = this.get("childThemes");
|
||||
if (!childThemes) {
|
||||
childThemes = [];
|
||||
this.set('childThemes', childThemes);
|
||||
}
|
||||
childThemes.removeObject(theme);
|
||||
childThemes.pushObject(theme);
|
||||
return this.saveChanges("child_theme_ids");
|
||||
|
Loading…
Reference in New Issue
Block a user