about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2020-11-01 18:31:39 +0100
committerThibaut Girka <thib@sitedethib.com>2020-11-03 17:38:50 +0100
commitadfaf9551c817da83d955ac55e6791bb12ea894e (patch)
tree8220c3e4ff51c257fa998e43ee85ae261ff5e85b /app/javascript/flavours/glitch
parent37dfb9dddcc816744d1ab269dd879451addb1be4 (diff)
[Glitch] Fix some account media gallery items having empty labels
Port 9d023ed4f6d8a69699d14479d5e12132ea4f4cd2 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours/glitch')
-rw-r--r--app/javascript/flavours/glitch/features/account_gallery/components/media_item.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/features/account_gallery/components/media_item.js b/app/javascript/flavours/glitch/features/account_gallery/components/media_item.js
index 781bd4e03..7457980d2 100644
--- a/app/javascript/flavours/glitch/features/account_gallery/components/media_item.js
+++ b/app/javascript/flavours/glitch/features/account_gallery/components/media_item.js
@@ -122,7 +122,7 @@ export default class MediaItem extends ImmutablePureComponent {
         <div className='media-gallery__gifv'>
           {content}
 
-          <span className='media-gallery__gifv__label'>{label}</span>
+          {label && <span className='media-gallery__gifv__label'>{label}</span>}
         </div>
       );
     }