diff --git a/frontend/src/routes/search/Search.svelte b/frontend/src/routes/search/Search.svelte index dea0c210..118954e7 100644 --- a/frontend/src/routes/search/Search.svelte +++ b/frontend/src/routes/search/Search.svelte @@ -53,7 +53,6 @@ } async function getTitle(key,module,entity_id){ - get(api(module+'/'+entity_id)).then(res => setTitle(res,key,module)) } @@ -62,6 +61,9 @@ const json = await resp.json(); if (json.name) notes[key].title = t(module)+": "+json.name; if (json.title) notes[key].title = t(module)+": "+json.title; + if (module == 'document'){ + notes[key].title = t(json.type)+" "+json.number; + } } }