Fix close al tabs

This commit is contained in:
Linhart Lukáš 2024-08-30 08:10:10 +02:00
parent 93080de2a8
commit 6104794c45

View File

@ -213,7 +213,7 @@ function RequestTabMenu({ onDropdownCreate, collectionRequestTabs, tabIndex, col
try {
const item = findItemInCollection(collection, tabUid);
// silently save unsaved changes before closing the tab
if (item.draft) {
if (item?.draft) {
await dispatch(saveRequest(item.uid, collection.uid, true));
}