fix(shared): Revert initial constant options fix
This commit is contained in:
parent
6d5e99d0c1
commit
e551846530
1 changed files with 1 additions and 2 deletions
|
@ -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.'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue