From c154dec2b5b1fa4115874ba4d49f8ecd756b918d Mon Sep 17 00:00:00 2001 From: lohxt1 Date: Sun, 15 Dec 2024 19:55:15 +0530 Subject: [PATCH] fix: followup pr - only close folder tab on rename --- .../Collection/CollectionItem/RenameCollectionItem/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/RenameCollectionItem/index.js b/packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/RenameCollectionItem/index.js index c9ce0b95..04744b6d 100644 --- a/packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/RenameCollectionItem/index.js +++ b/packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/RenameCollectionItem/index.js @@ -34,7 +34,7 @@ const RenameCollectionItem = ({ collection, item, onClose }) => { } dispatch(renameItem(values.name, item.uid, collection.uid)) .then(() => { - dispatch(closeTabs({ tabUids: [item.uid] })); + isFolder && dispatch(closeTabs({ tabUids: [item.uid] })); toast.success(isFolder ? 'Folder renamed' : 'Request renamed'); onClose(); })