[web] Fix assignment typo in previous PR (#5499)
https://github.com/ente-io/ente/pull/5498
This commit is contained in:
@@ -1128,10 +1128,9 @@ const FileThumbnail: React.FC<FileThumbnailProps> = ({
|
||||
);
|
||||
|
||||
useEffect(() => {
|
||||
let timerID: ReturnType<typeof setTimeout>;
|
||||
if (isLongPressing) {
|
||||
setTimeout(() => onSelect(!selected), 500);
|
||||
}
|
||||
const timerID = isLongPressing
|
||||
? setTimeout(() => onSelect(!selected), 500)
|
||||
: undefined;
|
||||
return () => {
|
||||
if (timerID) clearTimeout(timerID);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user