Initialize allowedGroups inside the constructor
This commit is contained in:
parent
65fbdc3396
commit
8114684ed8
|
@ -3,11 +3,12 @@ import { popupAjaxError } from "discourse/lib/ajax-error";
|
||||||
|
|
||||||
export default Ember.Controller.extend({
|
export default Ember.Controller.extend({
|
||||||
assignSuggestions: null,
|
assignSuggestions: null,
|
||||||
allowedGroups: [],
|
allowedGroups: null,
|
||||||
taskActions: Ember.inject.service(),
|
taskActions: Ember.inject.service(),
|
||||||
|
|
||||||
init() {
|
init() {
|
||||||
this._super(...arguments);
|
this._super(...arguments);
|
||||||
|
this.allowedGroups = [];
|
||||||
|
|
||||||
ajax("/assign/suggestions").then(data => {
|
ajax("/assign/suggestions").then(data => {
|
||||||
this.set("assignSuggestions", data.suggestions);
|
this.set("assignSuggestions", data.suggestions);
|
||||||
|
|
Loading…
Reference in New Issue