This commit is contained in:
Bxio 2025-04-04 21:06:16 +01:00
parent 013828e18b
commit e9bdb8b008

View File

@ -14,11 +14,12 @@ async function loadChoices() {
})); }));
} catch (err) { } catch (err) {
console.error("Erro ao carregar escolhas:", err); console.error("Erro ao carregar escolhas:", err);
return []; return ;
} }
} }
// Carrega as escolhas antes de definir o comando // Carrega as escolhas antes de definir o comando
let dynamicChoices = [];
loadChoices() loadChoices()
.then(choices => { .then(choices => {
dynamicChoices = choices; dynamicChoices = choices;