Merge pull request #3942 from BenJamesBen/constant-option-warning
fix(shared): Silence no-menu warnings for constant options
This commit is contained in:
commit
9f72324d46
1 changed files with 1 additions and 1 deletions
|
@ -187,7 +187,7 @@ export const optionsMenuStructure = (options) => {
|
|||
if (!options) return options
|
||||
const sorted = {}
|
||||
for (const [name, option] of Object.entries(options)) {
|
||||
sorted[name] = { ...option, name }
|
||||
if (typeof option === 'object') sorted[name] = { ...option, name }
|
||||
}
|
||||
|
||||
const menu = {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue