mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Remove unnecessary try catch
This commit is contained in:
@@ -29,11 +29,8 @@ export const SecretOverviewFolderRow = ({
|
||||
if (isClicking) return;
|
||||
|
||||
setIsClicking(true);
|
||||
try {
|
||||
onClick(folderName);
|
||||
} finally {
|
||||
setTimeout(() => setIsClicking(false), 1000);
|
||||
}
|
||||
onClick(folderName);
|
||||
setTimeout(() => setIsClicking(false), 1000);
|
||||
};
|
||||
return (
|
||||
<Tr isHoverable isSelectable className="group" onClick={handleClick}>
|
||||
|
||||
Reference in New Issue
Block a user