Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Fix lints

Manav Rathi75e146e23b5a
diff --git a/web/packages/gallery/components/utils/use-file-input.ts b/web/packages/gallery/components/utils/use-file-input.ts
index 0ff8b11b79..f344ed6ec5 100644
--- a/web/packages/gallery/components/utils/use-file-input.ts
+++ b/web/packages/gallery/components/utils/use-file-input.ts
@@ -56,7 +56,7 @@ export const useFileInput = ({
const openSelector = useCallback(() => {
if (inputRef.current) {
- inputRef.current.value = null;
+ inputRef.current.value = "";
inputRef.current.click();
}
}, []);
@@ -64,7 +64,7 @@ export const useFileInput = ({
const handleChange: React.ChangeEventHandler<HTMLInputElement> = (
event,
) => {
- const files = event.target?.files;
+ const files = event.target.files;
if (files) setSelectedFiles([...files]);
};