Refactor CollectionItem component to conditionally render dropdown item for non-folder items with type 'http-request' or 'graphql-request' (#3190)

This commit is contained in:
Sanjai Kumar 2024-09-25 14:10:49 +05:30 committed by GitHub
parent 5889e114d4
commit 63d4757bfa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -349,7 +349,7 @@ const CollectionItem = ({ item, collection, searchText }) => {
Run
</div>
)}
{!isFolder && (
{!isFolder && (item.type === 'http-request' || item.type === 'graphql-request') && (
<div
className="dropdown-item"
onClick={(e) => {