Fixed issue with creating slug in GroupCreate

• Fixed:
- issue with creating slug in GroupCreate
This commit is contained in:
mgabdev 2020-08-08 13:24:09 -05:00
parent eb99d187fc
commit 6e6678d8e8

View File

@ -232,7 +232,7 @@ class GroupCreate extends ImmutablePureComponent {
} }
const memberCount = group ? group.get('member_count') : 0 const memberCount = group ? group.get('member_count') : 0
const hasGroupId = group ? !!group.get('id') : false const hasGroupSlug = group ? !!group.get('slug') : false
let categoriesOptions = [] let categoriesOptions = []
if (categories) { if (categories) {
for (let i = 0; i < categories.count(); i++) { for (let i = 0; i < categories.count(); i++) {
@ -258,7 +258,7 @@ class GroupCreate extends ImmutablePureComponent {
<Divider isInvisible /> <Divider isInvisible />
{ {
memberCount >= 50 && !hasGroupId && memberCount >= 50 && !hasGroupSlug &&
<Fragment> <Fragment>
<Input <Input
id='group-id' id='group-id'