improved search result list
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -48,7 +48,8 @@
|
|||||||
|
|
||||||
async function handleBookmarks(resp){
|
async function handleBookmarks(resp){
|
||||||
if (resp.ok){
|
if (resp.ok){
|
||||||
bookmarks = await resp.json();
|
const res = await resp.json();
|
||||||
|
bookmarks = Object.keys(res).length ? res : null;
|
||||||
} else {
|
} else {
|
||||||
error = await resp.text();
|
error = await resp.text();
|
||||||
}
|
}
|
||||||
@@ -56,8 +57,8 @@
|
|||||||
|
|
||||||
async function handleTasks(resp){
|
async function handleTasks(resp){
|
||||||
if (resp.ok){
|
if (resp.ok){
|
||||||
tasks = await resp.json();
|
const res = await resp.json();
|
||||||
console.log(tasks);
|
tasks = Object.keys(res).length ? res : null;
|
||||||
} else {
|
} else {
|
||||||
error = await resp.text();
|
error = await resp.text();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user