Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

Fix reset bug

Edward Cui550054b59c9d
diff --git a/client/src/components/SiteSettings/ImportManager.tsx b/client/src/components/SiteSettings/ImportManager.tsx
index 6efdc026f..c2ade26a0 100644
--- a/client/src/components/SiteSettings/ImportManager.tsx
+++ b/client/src/components/SiteSettings/ImportManager.tsx
@@ -127,6 +127,7 @@ export function ImportManager({ siteId, disabled }: ImportManagerProps) {
mode: "onChange",
defaultValues: {
platform: "" as "umami",
+ file: Object.assign(new DataTransfer().files, {}),
dateRange: {},
},
});