about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2018-08-31 14:18:33 +0200
committerThibG <thib@sitedethib.com>2018-08-31 18:33:46 +0200
commit0f1db47a7e551bfc6a2f59d7f2def131bcb5b43c (patch)
treea00c206c57439549d088e4227700d7eec1c355e2 /app
parentb4f548fa18487e2335ec032369d452146b19cd42 (diff)
Fix search results on compose box
Diffstat (limited to 'app')
-rw-r--r--app/javascript/flavours/glitch/features/drawer/index.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/app/javascript/flavours/glitch/features/drawer/index.js b/app/javascript/flavours/glitch/features/drawer/index.js
index eac0370c2..4649e404f 100644
--- a/app/javascript/flavours/glitch/features/drawer/index.js
+++ b/app/javascript/flavours/glitch/features/drawer/index.js
@@ -113,10 +113,11 @@ class Drawer extends React.Component {
           {!isSearchPage && <DrawerAccount account={account} />}
           {!isSearchPage && <Composer />}
           {multiColumn && <button className='mastodon' onClick={onClickElefriend} />}
-          <DrawerResults
-            results={results}
-            visible={submitted && !searchHidden}
-          />
+          {(multiColumn || isSearchPage) &&
+            <DrawerResults
+              results={results}
+              visible={submitted && !searchHidden}
+            />}
         </div>
       </div>
     );