mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
no results also for "add link"
This commit is contained in:
parent
8211bed449
commit
bdb5e2f13f
@ -57,7 +57,15 @@ async function showDialog() {
|
||||
source: async function(request, response) {
|
||||
const result = await server.get('autocomplete?query=' + encodeURIComponent(request.term));
|
||||
|
||||
response(result);
|
||||
if (result.length > 0) {
|
||||
response(result);
|
||||
}
|
||||
else {
|
||||
response([{
|
||||
label: "No results",
|
||||
value: "No results"
|
||||
}]);
|
||||
}
|
||||
},
|
||||
minLength: 2,
|
||||
change: async () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user