Skip to content

Commit ffa4fe8

Browse files
committed
[core] Update group check in member drawer
1 parent 476b665 commit ffa4fe8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/express/public/core/user-management/javascripts/countly.views.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@
879879
// if it's in edit mode
880880
if (this.settings.editMode) {
881881
// is user member of a group?
882-
if (this.user.group_id && countlyGlobal.plugins.indexOf('groups') > -1) {
882+
if (this.user.group_id && this.user.group_id.length && countlyGlobal.plugins.indexOf('groups') > -1) {
883883
// set groups state
884884
if (Array.isArray(this.user.group_id)) {
885885
this.groups = this.user.group_id;

0 commit comments

Comments
 (0)