This commit is contained in:
parent
f3fbe205f8
commit
cdf2ec148f
@ -42,7 +42,7 @@ module.exports = {
|
||||
.setRequired(true)
|
||||
// Se as escolhas ainda não estiverem carregadas, defina um conjunto padrão para evitar erros.
|
||||
|
||||
.addChoices(...(dynamicChoices.length ? loadChoices() : [
|
||||
.addChoices(...(loadChoices().length ? loadChoices() : [
|
||||
{ name: 'Opção Padrão 1', value: '0' },
|
||||
{ name: 'Opção Padrão 2', value: '1' }
|
||||
]))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user