Fix FileTree failing

This commit is contained in:
49lf
2024-11-16 12:18:38 -05:00
parent a0aa4802d1
commit 1b68f5dc19

View File

@ -243,7 +243,7 @@ const FileTreeItem = ({
// Show the renaming form // Show the renaming form
addCurrentItemToRenaming() addCurrentItemToRenaming()
} else if (e.code === 'Space') { } else if (e.code === 'Space') {
toSync(handleClick, reportRejection) void handleClick().catch(reportRejection)
} }
} }
@ -294,7 +294,7 @@ const FileTreeItem = ({
style={{ paddingInlineStart: getIndentationCSS(level) }} style={{ paddingInlineStart: getIndentationCSS(level) }}
onClick={(e) => { onClick={(e) => {
e.currentTarget.focus() e.currentTarget.focus()
toSync(handleClick, reportRejection) void handleClick().catch(reportRejection)
}} }}
onKeyUp={handleKeyUp} onKeyUp={handleKeyUp}
> >