diff --git a/app/front-end/src/features/editor/components/filebarView/filebarGroupItem.tsx b/app/front-end/src/features/editor/components/filebarView/filebarGroupItem.tsx index 8bee2c8..899eff1 100644 --- a/app/front-end/src/features/editor/components/filebarView/filebarGroupItem.tsx +++ b/app/front-end/src/features/editor/components/filebarView/filebarGroupItem.tsx @@ -64,7 +64,7 @@ export const FilebarGroupItem: React.FC = (file) => { const handleCloseIconClick = (event: React.MouseEvent) => { event.stopPropagation(); if (!blocked) { - if (unsaved) { + if (unsaved && Workspace.file.id === id) { setConfirmAction('close'); setIsConfirmDialogOpen(true); } else {