mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Added custom formation tool
This commit is contained in:
@@ -503,7 +503,7 @@ export function filterBlueprintsByLabel(blueprints: { [key: string]: UnitBluepri
|
||||
var filteredBlueprints: { [key: string]: UnitBlueprint } = {};
|
||||
if (blueprints) {
|
||||
Object.entries(blueprints).forEach(([key, value]) => {
|
||||
if (value.enabled && (filterString === "" || value.label.includes(filterString))) filteredBlueprints[key] = value;
|
||||
if (value.enabled && (filterString === "" || value.label.toLowerCase().includes(filterString.toLowerCase()))) filteredBlueprints[key] = value;
|
||||
});
|
||||
}
|
||||
return filteredBlueprints;
|
||||
|
||||
Reference in New Issue
Block a user