From 1fb746bcb228a348da1b4d8056aab59e073ee89e Mon Sep 17 00:00:00 2001
From: ab <abdullah_ahmed@brown.edu>
Date: Wed, 10 Jul 2019 12:40:25 -0400
Subject: fix preview highlighting

---
 src/client/views/search/SearchItem.tsx | 1 +
 1 file changed, 1 insertion(+)

(limited to 'src/client/views/search/SearchItem.tsx')

diff --git a/src/client/views/search/SearchItem.tsx b/src/client/views/search/SearchItem.tsx
index 1d71fc6aa..a54be4437 100644
--- a/src/client/views/search/SearchItem.tsx
+++ b/src/client/views/search/SearchItem.tsx
@@ -212,6 +212,7 @@ export class SearchItem extends React.Component<SearchItemProps> {
             </div>;
             const data = renderDoc.data;
             if (data instanceof ObjectField) newRenderDoc.data = ObjectField.MakeCopy(data);
+            newRenderDoc.preview = true;
             newRenderDoc.search_string = "hundo";
             return docview;
         }
-- 
cgit v1.2.3-70-g09d2

