Skip to content

Commit

Permalink
Merge pull request #819 from MetaCell/bug/208-widgets-order
Browse files Browse the repository at this point in the history
Widget Order
  • Loading branch information
enicolasgomez authored Mar 5, 2024
2 parents f05dd9f + c3b9bce commit 798cf71
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webapp/components/drawer/Drawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ const DrawerList = ({
function getMenu () {
const [modelDrawerItems, toolsDrawerItems] = [[], []];
// eslint-disable-next-line array-callback-return
Object.values(widgets).sort((w1, w2) => w1.pos - w2.pos).filter((widget) => {
Object.values(widgets)
//.sort((w1, w2) => w1.pos - w2.pos)
.filter((widget) => {
widget.specification !== TOOLS_LIST
? modelDrawerItems.push(widget) : toolsDrawerItems.push(widget);
});
Expand Down

0 comments on commit 798cf71

Please sign in to comment.