Skip to content

Commit

Permalink
Fixed a bug regarding closing other files when there are unsaved changes
Browse files Browse the repository at this point in the history
  • Loading branch information
justinnas committed Sep 20, 2024
1 parent c2f13d1 commit 35b02ce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const FilebarGroupItem: React.FC<FileModel> = (file) => {
const handleCloseIconClick = (event: React.MouseEvent) => {
event.stopPropagation();
if (!blocked) {
if (unsaved) {
if (unsaved && Workspace.file.id === id) {
setConfirmAction('close');
setIsConfirmDialogOpen(true);
} else {
Expand Down

0 comments on commit 35b02ce

Please sign in to comment.