From c132b7b584ae806b7cb67716d8287424b7aba980 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Tue, 9 Feb 2021 19:00:13 +0000 Subject: [PATCH] tidy up --- packages/client/src/api/datasources.js | 5 +---- packages/standard-components/src/Search.svelte | 3 --- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/client/src/api/datasources.js b/packages/client/src/api/datasources.js index 91cdde696a..346bf37843 100644 --- a/packages/client/src/api/datasources.js +++ b/packages/client/src/api/datasources.js @@ -7,10 +7,7 @@ import { enrichRows } from "./rows" export const searchTable = async ({ tableId, search, pagination }) => { const rows = await searchTableData({ tableId, search, pagination }) - return rows - // TODO - // Enrich rows so they can displayed properly - // return await enrichRows(rows, tableId) + return await enrichRows(rows, tableId) } /** diff --git a/packages/standard-components/src/Search.svelte b/packages/standard-components/src/Search.svelte index 2a71504c9d..fc31645fc3 100644 --- a/packages/standard-components/src/Search.svelte +++ b/packages/standard-components/src/Search.svelte @@ -28,7 +28,6 @@ let page = 0 $: fetchData(table, page) - $: searchable = [...(table.indexes || []), ...columns] // omit empty strings $: parsedSearch = Object.keys(search).reduce( (acc, next) => @@ -114,14 +113,12 @@

{noRowsMessage}

{/if}