From c2333d1d2665fb7ee847be9b1971f26b1a6ca692 Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Thu, 25 Mar 2021 14:24:22 -0400 Subject: [PATCH] Fixed manual search modal. --- .../components/modals/ManualSearchModal.tsx | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/frontend/src/components/modals/ManualSearchModal.tsx b/frontend/src/components/modals/ManualSearchModal.tsx index 2eeedb3b0..879070e8b 100644 --- a/frontend/src/components/modals/ManualSearchModal.tsx +++ b/frontend/src/components/modals/ManualSearchModal.tsx @@ -80,23 +80,6 @@ export const ManualSearchModal: FunctionComponent = ( const columns = useMemo[]>( () => [ - { - accessor: "subtitle", - Cell: ({ row, externalUpdate }) => { - const result = row.original; - return ( - onSelect(item!, result)} - onSuccess={() => externalUpdate && externalUpdate(row)} - > - - - ); - }, - }, { Header: "Score", accessor: (d) => `${d.score}%`, @@ -157,7 +140,7 @@ export const ManualSearchModal: FunctionComponent = ( {display} @@ -181,6 +164,23 @@ export const ManualSearchModal: FunctionComponent = ( return ; }, }, + { + accessor: "subtitle", + Cell: ({ row, externalUpdate }) => { + const result = row.original; + return ( + onSelect(item!, result)} + onSuccess={() => externalUpdate && externalUpdate(row)} + > + + + ); + }, + }, ], [onSelect, item] );