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:
Martin Raifer
2022-02-15 12:03:37 +01:00
parent bd1836fd0c
commit 09d98b7095
+4
View File
@@ -77,6 +77,10 @@ export function presetPreset(presetID, preset, addable, allFields, allPresets) {
}
}
if (_this.searchable === false) {
score *= 0.999;
}
return score;
};