From dbc091cc3c6347d891c4c5192caafe4b155e1d18 Mon Sep 17 00:00:00 2001 From: Stephan Richter Date: Tue, 19 Aug 2025 09:46:11 +0200 Subject: [PATCH] improved search result list Signed-off-by: Stephan Richter --- frontend/src/routes/search/Search.svelte | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/src/routes/search/Search.svelte b/frontend/src/routes/search/Search.svelte index fa4476a..99aadba 100644 --- a/frontend/src/routes/search/Search.svelte +++ b/frontend/src/routes/search/Search.svelte @@ -48,7 +48,8 @@ async function handleBookmarks(resp){ if (resp.ok){ - bookmarks = await resp.json(); + const res = await resp.json(); + bookmarks = Object.keys(res).length ? res : null; } else { error = await resp.text(); } @@ -56,8 +57,8 @@ async function handleTasks(resp){ if (resp.ok){ - tasks = await resp.json(); - console.log(tasks); + const res = await resp.json(); + tasks = Object.keys(res).length ? res : null; } else { error = await resp.text(); }