fix: show unsaved changes prompt when closing tab with Cmd+W (#8245)

This commit is contained in:
Bhavik Mehta
2026-06-12 00:11:25 -07:00
committed by GitHub
parent 1d3a412539
commit 13363d7931

View File

@@ -206,7 +206,7 @@ const RequestTab = ({ tab, collection, tabIndex, collectionRequestTabs, folderUi
// Close tab shortcut — draft-aware, only active for the focused tab
useKeybinding('closeTab', () => {
if (tab.type === 'request' || tab.type === 'grpc-request' || tab.type === 'ws-request' || tab.type === 'graphql-request') {
if (tab.type === 'request' || tab.type === 'http-request' || tab.type === 'grpc-request' || tab.type === 'ws-request' || tab.type === 'graphql-request') {
if (hasChanges) {
setShowConfirmClose(true);
} else {