mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-25 01:14:23 +01:00
Fix close al tabs
This commit is contained in:
parent
93080de2a8
commit
6104794c45
@ -213,7 +213,7 @@ function RequestTabMenu({ onDropdownCreate, collectionRequestTabs, tabIndex, col
|
|||||||
try {
|
try {
|
||||||
const item = findItemInCollection(collection, tabUid);
|
const item = findItemInCollection(collection, tabUid);
|
||||||
// silently save unsaved changes before closing the tab
|
// silently save unsaved changes before closing the tab
|
||||||
if (item.draft) {
|
if (item?.draft) {
|
||||||
await dispatch(saveRequest(item.uid, collection.uid, true));
|
await dispatch(saveRequest(item.uid, collection.uid, true));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user