From 5abd5437665a9453feaf16c45960483add802378 Mon Sep 17 00:00:00 2001 From: Rachel H Date: Fri, 21 Apr 2017 11:06:25 -0700 Subject: [PATCH] Put space before image (#1735) --- app/assets/javascripts/components/reducers/compose.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/components/reducers/compose.jsx b/app/assets/javascripts/components/reducers/compose.jsx index 7349cc351d..a411feedd1 100644 --- a/app/assets/javascripts/components/reducers/compose.jsx +++ b/app/assets/javascripts/components/reducers/compose.jsx @@ -77,8 +77,8 @@ function appendMedia(state, media) { map.update('media_attachments', list => list.push(media)); map.set('is_uploading', false); map.set('resetFileKey', Math.floor((Math.random() * 0x10000))); + map.update('text', oldText => `${oldText.trim()} ${media.get('text_url')}`); map.set('focusDate', new Date()); - map.update('text', oldText => `${oldText.trim()} ${media.get('text_url')}`.trim() + ' '); }); };