From 90a1a9274f6e3c0ca4eabbb5ed44ac6e33d80c00 Mon Sep 17 00:00:00 2001 From: Abdul Rahman <81605929+abdulrahmancodes@users.noreply.github.com> Date: Tue, 5 May 2026 18:28:40 +0530 Subject: [PATCH] fix: show pinned commands in side panel search results (#20265) Discord issue: https://discord.com/channels/1130383047699738754/1498996539530412053 --- .../components/SidePanelCommandMenuItemDisplayPage.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/twenty-front/src/modules/command-menu-item/display/components/SidePanelCommandMenuItemDisplayPage.tsx b/packages/twenty-front/src/modules/command-menu-item/display/components/SidePanelCommandMenuItemDisplayPage.tsx index abb1ae1bc5..33fdaaea34 100644 --- a/packages/twenty-front/src/modules/command-menu-item/display/components/SidePanelCommandMenuItemDisplayPage.tsx +++ b/packages/twenty-front/src/modules/command-menu-item/display/components/SidePanelCommandMenuItemDisplayPage.tsx @@ -79,9 +79,13 @@ export const SidePanelCommandMenuItemDisplayPage = () => { ? pinnedCommandMenuItems.slice(visiblePinnedCommandMenuItemCount) : pinnedCommandMenuItems; - const matchingPinnedItems = filterCommandMenuItemsWithSidePanelSearch( - pinnedOverflowCommandMenuItems, - ); + const pinnedItemsToFilter = + sidePanelSearch.length > 0 + ? pinnedCommandMenuItems + : pinnedOverflowCommandMenuItems; + + const matchingPinnedItems = + filterCommandMenuItemsWithSidePanelSearch(pinnedItemsToFilter); const matchingOtherItems = filterCommandMenuItemsWithSidePanelSearch( unpinnedCommandMenuItems, );