Enhancement: respect search engine order from config (#5250)

This commit is contained in:
Garrett 2025-05-08 07:40:51 +00:00 committed by GitHub
parent 3c6f99d5ae
commit 6c82883fa9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -49,7 +49,7 @@ export const searchProviders = {
function getAvailableProviderIds(options) {
if (options.provider && Array.isArray(options.provider)) {
return Object.keys(searchProviders).filter((value) => options.provider.includes(value));
return options.provider.filter((value) => searchProviders.hasOwnProperty(value));
}
if (options.provider && searchProviders[options.provider]) {
return [options.provider];