Skip to content

Commit 0b2b851

Browse files
dbeaver/pro#8156 filters menu bar with hidden actions (#4093)
Co-authored-by: Evgenia <139753579+EvgeniaBzzz@users.noreply.github.com>
1 parent dcb8e53 commit 0b2b851

File tree

1 file changed

+2
-2
lines changed
  • webapp/packages/core-ui/src/ContextMenu/MenuBar

1 file changed

+2
-2
lines changed

webapp/packages/core-ui/src/ContextMenu/MenuBar/MenuBar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* CloudBeaver - Cloud Database Manager
3-
* Copyright (C) 2020-2025 DBeaver Corp and others
3+
* Copyright (C) 2020-2026 DBeaver Corp and others
44
*
55
* Licensed under the Apache License, Version 2.0.
66
* you may not use this file except in compliance with the License.
@@ -22,7 +22,7 @@ import { useMemo } from 'react';
2222

2323
export const MenuBar = observer<IMenuBarProps>(function MenuBar({ menu, compact = true, rtl, className, ref, ...props }) {
2424
const styles = useS(style);
25-
const items = menu.items;
25+
const items = menu.items.filter(item => !item.hidden);
2626
useAutoLoad(MenuBar, menu.loaders, true, false, true);
2727
const menubarStore = useMenubarStore({ rtl });
2828
const menuContext = useMemo<IMenuContext>(() => ({ menu, rtl }), [menu, rtl]);

0 commit comments

Comments
 (0)