FIX: set `null` to group if `groupAttrs` param is not available. (#14795)

Because of this bug "all groups" option in the group selector dropdown was not selectable on the user directory page.
This commit is contained in:
Vinoth Kannan 2021-11-14 19:53:50 +05:30 committed by GitHub
parent 4f14e012a7
commit 2b848213f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ export default Controller.extend({
@action @action
groupChanged(_, groupAttrs) { groupChanged(_, groupAttrs) {
// First param is the group name, which include none or 'all groups'. Ignore this and look at second param. // First param is the group name, which include none or 'all groups'. Ignore this and look at second param.
this.set("group", groupAttrs.id); this.set("group", groupAttrs?.id);
}, },
@action @action