fix replaceAll with replace as is not available on some JSC (#5801) (#5806)

This commit is contained in:
Mattermost Build 2021-11-02 08:14:15 +01:00 committed by GitHub
parent 8287e620d8
commit 84a292003e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -431,7 +431,7 @@ export default class List extends PureComponent {
case CategoryTypes.DIRECT_MESSAGES:
return CategoryTypes.DIRECT_MESSAGES.toLowerCase();
default:
return name.replaceAll(' ', '_').toLowerCase();
return name.replace(/ /g, '_').toLowerCase();
}
};