|
|
@ -342,7 +342,7 @@ export class GhostfolioService { |
|
|
|
|
|
|
|
|
query = query?.trim(); |
|
|
query = query?.trim(); |
|
|
|
|
|
|
|
|
if (!query) { |
|
|
if (!query || query.length < 2) { |
|
|
return results; |
|
|
return results; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -350,10 +350,6 @@ export class GhostfolioService { |
|
|
let lookupItems: LookupItem[] = []; |
|
|
let lookupItems: LookupItem[] = []; |
|
|
const promises: Promise<{ items: LookupItem[] }>[] = []; |
|
|
const promises: Promise<{ items: LookupItem[] }>[] = []; |
|
|
|
|
|
|
|
|
if (query?.length < 2) { |
|
|
|
|
|
return { items: lookupItems }; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
for (const dataProviderService of this.getDataProviderServices()) { |
|
|
for (const dataProviderService of this.getDataProviderServices()) { |
|
|
promises.push( |
|
|
promises.push( |
|
|
dataProviderService.search({ |
|
|
dataProviderService.search({ |
|
|
|