[Glitch] Remove “No description added” media warning in edit mode

Port 28ae058593 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
lolsob-rspec
Claire 2022-11-11 09:20:24 +01:00
parent fd6d4392c2
commit 905aa6616d
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ export default class Upload extends ImmutablePureComponent {
{!isEditingStatus && (<button className='icon-button' onClick={this.handleFocalPointClick}><Icon id='pencil' /> <FormattedMessage id='upload_form.edit' defaultMessage='Edit' /></button>)}
</div>
{(media.get('description') || '').length === 0 && (
{(media.get('description') || '').length === 0 && !isEditingStatus && (
<div className='compose-form__upload__warning'>
<button className='icon-button' onClick={this.handleFocalPointClick}><Icon id='info-circle' /> <FormattedMessage id='upload_form.description_missing' defaultMessage='No description added' /></button>
</div>