Initialize allowedGroups inside the constructor

This commit is contained in:
romanrizzi 2019-07-24 12:17:42 -03:00
parent 65fbdc3396
commit 8114684ed8
1 changed files with 2 additions and 1 deletions

View File

@ -3,11 +3,12 @@ import { popupAjaxError } from "discourse/lib/ajax-error";
export default Ember.Controller.extend({
assignSuggestions: null,
allowedGroups: [],
allowedGroups: null,
taskActions: Ember.inject.service(),
init() {
this._super(...arguments);
this.allowedGroups = [];
ajax("/assign/suggestions").then(data => {
this.set("assignSuggestions", data.suggestions);