Skip to content

Commit 6be3a1d

Browse files
author
rodriguez-facundo
committed
#139 Enforce Drawer items ordered sequence
1 parent 930fe4b commit 6be3a1d

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

webapp/components/settings/Drawer.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,15 @@ export default ({ widgets, newWidget, editMode }) => {
9191

9292
function getMenu () {
9393
if (editMode) {
94-
return Object.values({ ...HLS_WIDGETS, python: PYTHON_CONSOLE_WIDGET })
94+
const array = [...Object.values(HLS_WIDGETS),
95+
PYTHON_CONSOLE_WIDGET]
96+
return array
9597
} else {
96-
return Object.values({
97-
...FLEXLAYOUT_DEFAULT_STATE.widgetsBackground,
98-
...PLOTS_WIDGETS,
99-
python: PYTHON_CONSOLE_WIDGET
100-
})
98+
const array = [MORPHOLOGY_WIDGET,
99+
...Object.values(PLOTS_WIDGETS),
100+
PYTHON_CONSOLE_WIDGET]
101+
102+
return array
101103
}
102104

103105
}

0 commit comments

Comments
 (0)