Fix: correctly apply previous refactoring
This commit is contained in:
parent
0c86df7a85
commit
2a53f99dd5
2 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ export default class LayerSearch {
|
|||
if (query.length < 1) {
|
||||
return []
|
||||
}
|
||||
const scores = LayerSearch.scoreLayers(query, this._layerWhitelist)
|
||||
const scores = LayerSearch.scoreLayers(query, { whitelist: this._layerWhitelist })
|
||||
const asList: ({ layer: LayerConfig, score: number })[] = []
|
||||
for (const layer in scores) {
|
||||
asList.push({
|
||||
|
|
|
@ -109,7 +109,7 @@ export default class ThemeSearch {
|
|||
|
||||
let options : {blacklist: Set<string>} = undefined
|
||||
if(ignoreLayers?.length > 0){
|
||||
options.blacklist = new Set(ignoreLayers)
|
||||
options = { blacklist: new Set(ignoreLayers) }
|
||||
}
|
||||
const layerScores = query.length < 3 ? {} : LayerSearch.scoreLayers(query, options)
|
||||
const results: Record<string, ThemeSearchScore> = {}
|
||||
|
|
Loading…
Reference in a new issue