From 4f9d1ecdcf909702f9de1f141c24db9486983ab3 Mon Sep 17 00:00:00 2001 From: Justinas <156369263+justinnas@users.noreply.github.com> Date: Sun, 15 Sep 2024 21:11:02 +0300 Subject: [PATCH] Fixed a bug where a popup would appear when clicked on a folder --- .../components/fileTreeView/fileTreeItem/fileTreeItem.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/front-end/src/features/editor/components/fileTreeView/fileTreeItem/fileTreeItem.tsx b/app/front-end/src/features/editor/components/fileTreeView/fileTreeItem/fileTreeItem.tsx index d64760b..3a06379 100644 --- a/app/front-end/src/features/editor/components/fileTreeView/fileTreeItem/fileTreeItem.tsx +++ b/app/front-end/src/features/editor/components/fileTreeView/fileTreeItem/fileTreeItem.tsx @@ -183,7 +183,7 @@ export const FileTreeItem = React.forwardRef(function CustomTreeItem( if (!blocked) { if (getContentProps().onClick) getContentProps().onClick(event); if (unsaved) { - setIsConfirmDialogOpen(true); + if (item.fileType !== FileTypes.FOLDER) setIsConfirmDialogOpen(true); } else { handleClick(item.id, item.label, item.fileType); }