diff --git a/packages/bruno-app/src/components/Sidebar/Collections/Collection/index.js b/packages/bruno-app/src/components/Sidebar/Collections/Collection/index.js index 654f57f4..6cd7dba9 100644 --- a/packages/bruno-app/src/components/Sidebar/Collections/Collection/index.js +++ b/packages/bruno-app/src/components/Sidebar/Collections/Collection/index.js @@ -55,12 +55,6 @@ const Collection = ({ collection, searchText }) => { dispatch(collectionClicked(collection.uid)); }; - if (searchText && searchText.length) { - if (!doesCollectionHaveItemsMatchingSearchText(collection, searchText)) { - return null; - } - } - const handleExportClick = () => { const collectionCopy = cloneDeep(collection); exportCollection(transformCollectionToSaveToIdb(collectionCopy)); @@ -80,6 +74,12 @@ const Collection = ({ collection, searchText }) => { }) }); + if (searchText && searchText.length) { + if (!doesCollectionHaveItemsMatchingSearchText(collection, searchText)) { + return null; + } + } + // we need to sort request items by seq property const sortRequestItems = (items = []) => { return items.sort((a, b) => a.seq - b.seq);