diff --git a/src/components/FileTree.tsx b/src/components/FileTree.tsx index 60d23bb6a..e2890fca1 100644 --- a/src/components/FileTree.tsx +++ b/src/components/FileTree.tsx @@ -243,7 +243,7 @@ const FileTreeItem = ({ // Show the renaming form addCurrentItemToRenaming() } else if (e.code === 'Space') { - toSync(handleClick, reportRejection) + void handleClick().catch(reportRejection) } } @@ -294,7 +294,7 @@ const FileTreeItem = ({ style={{ paddingInlineStart: getIndentationCSS(level) }} onClick={(e) => { e.currentTarget.focus() - toSync(handleClick, reportRejection) + void handleClick().catch(reportRejection) }} onKeyUp={handleKeyUp} >