We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9380578 commit 888ff0bCopy full SHA for 888ff0b
src/js/tabs/onboard_logging.js
@@ -610,7 +610,10 @@ onboard_logging.initialize = function (callback) {
610
flash_update_summary(function () {
611
if (CONFIGURATOR.connectionValid && !eraseCancelled) {
612
if (FC.DATAFLASH.ready) {
613
- $(".dataflash-confirm-erase")[0].close();
+ const dialog = $(".dataflash-confirm-erase")[0];
614
+ if (dialog?.open) {
615
+ dialog.close();
616
+ }
617
if (getConfig("showNotifications").showNotifications) {
618
NotificationManager.showNotification("Betaflight Configurator", {
619
body: i18n.getMessage("flashEraseDoneNotification"),
0 commit comments