mirror of
https://github.com/usebruno/bruno.git
synced 2025-03-08 19:41:33 +01:00
Merge pull request #3659 from lohxt1/followup-pr/close-tab-after-rename-folders-only
fix: followup pr - only close folder tab on rename pr-3607
This commit is contained in:
commit
06c0b7c78a
@ -34,7 +34,7 @@ const RenameCollectionItem = ({ collection, item, onClose }) => {
|
|||||||
}
|
}
|
||||||
dispatch(renameItem(values.name, item.uid, collection.uid))
|
dispatch(renameItem(values.name, item.uid, collection.uid))
|
||||||
.then(() => {
|
.then(() => {
|
||||||
dispatch(closeTabs({ tabUids: [item.uid] }));
|
isFolder && dispatch(closeTabs({ tabUids: [item.uid] }));
|
||||||
toast.success(isFolder ? 'Folder renamed' : 'Request renamed');
|
toast.success(isFolder ? 'Folder renamed' : 'Request renamed');
|
||||||
onClose();
|
onClose();
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user