Skip to content

Commit

Permalink
Fixed a bug where a popup would appear when clicked on a folder
Browse files Browse the repository at this point in the history
  • Loading branch information
justinnas committed Sep 15, 2024
1 parent 0946efb commit 4f9d1ec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 4f9d1ec

Please sign in to comment.