Fixed issue with truncated group info description on desktop

• Fixed:
- issue with truncated group info description on desktop
This commit is contained in:
mgabdev 2020-09-15 11:03:37 -05:00
parent 395e37282d
commit 7c952a1e06
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ class GroupInfoPanel extends ImmutablePureComponent {
const tags = !!group ? group.get('tags') : []
const groupCategory = !!group ? group.getIn(['group_category', 'text'], null) : null
const collapsable = !!group ? `${group.get('description')}`.length > 500 : false
const collapsable = !!group ? `${group.get('description')}`.length > 500 && noPanel : false
let des = ''
if (!!group) des = collapsable && !descriptionOpen ? `${group.get('description_html')}`.substring(0, 500) : group.get('description_html')
const descriptionHTML = !!group ? { __html: des } : {}