1
0
Fork 0

fix(shared): Revert initial constant options fix

This commit is contained in:
Benjamin F 2023-05-03 14:22:34 -07:00
parent 6d5e99d0c1
commit e551846530

View file

@ -187,9 +187,8 @@ export const optionsMenuStructure = (options) => {
// Fixme: One day we should sort this based on the translation
for (const option of orderBy(sorted, ['menu', 'name'], ['asc'])) {
if (typeof option === 'object') {
const isAConstant = Object.keys(option).length === 1
if (option.menu) set(menu, `${option.menu}.${option.name}`, optionType(option))
else if (typeof option.menu === 'undefined' && !isAConstant) {
else if (typeof option.menu === 'undefined') {
console.log(
`Warning: Option ${option.name} does not have a menu config. ` +
'Either configure it, or set it to false to hide this option.'