diff --git a/packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/index.js b/packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/index.js index 6201dc7c0..9b520f4a5 100644 --- a/packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/index.js +++ b/packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/index.js @@ -98,7 +98,7 @@ const CollectionItem = ({ item, collection, searchText }) => { }; const handleClick = (event) => { - if (event.detail != 1) return; + if (event && event.detail != 1) return; //scroll to the active tab setTimeout(scrollToTheActiveTab, 50);