Unable to add new member in the team

Hello,we are facing an issue in mattermost teams edition. The issue is, When I add member in current team it throw error, A JavaScript error has occurred. Please use the JavaScript console to capture and report the error. I am unable to resolve it. Can you give the solution for this issue. I will be thankful to you.
Note: I have admin access and i am login as an admin and trying to add members in team using system console->User Management->Teams.

What Mattermost server version are you on?

@amy.blais thank you for your quick response. here is the Screenshot of Mattermost Version:

@lindy65 @linda Are you able to help test if this reproduces on a Team Edition server?

A ticket was opened: [MM-47667] - Mattermost.