1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-24 16:55:24 +03:00

Presets: fix a bug when saving freezes the progress dialog (because of the \r in the CLI text)

This commit is contained in:
Ivan Efimov 2022-03-21 01:44:54 -05:00
parent 4fe2d9382c
commit 272b0fb1ba

View file

@ -61,7 +61,7 @@ TABS.presets.getPickedPresetsCli = function() {
this.pickedPresetList.forEach(pickedPreset => {
result.push(...pickedPreset.presetCli);
});
result = result.filter(command => command !== "");
result = result.filter(command => command.trim() !== "");
return result;
};