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 4c3b43c6..30830d5f 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 @@ -36,7 +36,7 @@ const CollectionItem = ({ item, collection, searchText }) => { const [itemIsCollapsed, setItemisCollapsed] = useState(item.collapsed); const [{ isDragging }, drag] = useDrag({ - type: 'COLLECTION_ITEM', + type: `COLLECTION_ITEM_${collection.uid}`, item: item, collect: (monitor) => ({ isDragging: monitor.isDragging() @@ -44,7 +44,7 @@ const CollectionItem = ({ item, collection, searchText }) => { }); const [{ isOver }, drop] = useDrop({ - accept: 'COLLECTION_ITEM', + accept: `COLLECTION_ITEM_${collection.uid}`, drop: (draggedItem) => { if (draggedItem.uid !== item.uid) { dispatch(moveItem(collection.uid, draggedItem.uid, item.uid)); 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 7c6b8c08..713f02c9 100644 --- a/packages/bruno-app/src/components/Sidebar/Collections/Collection/index.js +++ b/packages/bruno-app/src/components/Sidebar/Collections/Collection/index.js @@ -65,7 +65,7 @@ const Collection = ({ collection, searchText }) => { }; const [{ isOver }, drop] = useDrop({ - accept: 'COLLECTION_ITEM', + accept: `COLLECTION_ITEM_${collection.uid}`, drop: (draggedItem) => { dispatch(moveItemToRootOfCollection(collection.uid, draggedItem.uid)); }, diff --git a/packages/bruno-app/src/components/Welcome/index.js b/packages/bruno-app/src/components/Welcome/index.js index 3e7d104b..54754854 100644 --- a/packages/bruno-app/src/components/Welcome/index.js +++ b/packages/bruno-app/src/components/Welcome/index.js @@ -60,9 +60,9 @@ const Welcome = () => { Create Collection -