Browse Source

improved search result list

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
feature/brute_force_protection
Stephan Richter 3 months ago
parent
commit
dbc091cc3c
  1. 7
      frontend/src/routes/search/Search.svelte

7
frontend/src/routes/search/Search.svelte

@ -48,7 +48,8 @@ @@ -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 @@ @@ -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();
}

Loading…
Cancel
Save