mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 01:36:24 +01:00
no results also for "add link"
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user