JS error on Invite People modal

Description

Reproduces on master and v5.22

Steps:
1. Log in as a user with invite permissions
2. Go to Invite People screen
3. Click on either Invite Members or Invite Guests

Observed: JavaScript error. See screenshot:


Expected: No errors

QA Test Steps

See description

Mana

None

Assignee

Jesús Espino

QA Assignee

Ogi Marusic

Reporter

Ogi Marusic

Epic Link

None

Fix versions

Mattermost Team

Platform

Sprint

None

Labels

None

QA Testing Areas

Other (write in QA test steps)

GitHub Issue

None

Components

None

Severity

S2_functionality_loss_or_cosmetic_regressions
Configure