The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
fix: show pinned commands in side panel search results (#20265)
Abdul Rahman90a1a9274f6e
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.tsxindex abb1ae1bc56..33fdaaea34a 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,);