mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-14 21:28:11 +02:00
slighty penalize non-searchable presets
as a tie-breaker in case a searchable preset also matches the same object, see https://github.com/openstreetmap/id-tagging-schema/issues/399#issuecomment-1039902506
This commit is contained in:
@@ -77,6 +77,10 @@ export function presetPreset(presetID, preset, addable, allFields, allPresets) {
|
||||
}
|
||||
}
|
||||
|
||||
if (_this.searchable === false) {
|
||||
score *= 0.999;
|
||||
}
|
||||
|
||||
return score;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user