diff --git a/client/web/src/components/QuickSwitcher/index.tsx b/client/web/src/components/QuickSwitcher/index.tsx index fd5dde5c0d5..e5a9826e5d0 100644 --- a/client/web/src/components/QuickSwitcher/index.tsx +++ b/client/web/src/components/QuickSwitcher/index.tsx @@ -54,7 +54,7 @@ const QuickSwitcher: React.FC = React.memo(() => { return (
{ - group.panels.forEach((panel) => { - list.push({ - key: `qs#grouppanel#${panel.id}`, - label: `[${group.name}] ${panel.name}`, - source: 'core', - action: ({ navigate }) => { - navigate(`/main/group/${group._id}/${panel.id}`); - }, + group.panels + .filter((p) => p.type !== model.group.GroupPanelType.GROUP) + .forEach((panel) => { + list.push({ + key: `qs#grouppanel#${panel.id}`, + label: `[${group.name}] ${panel.name}`, + source: 'core', + action: ({ navigate }) => { + navigate(`/main/group/${group._id}/${panel.id}`); + }, + }); }); - }); }); return list;