Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

fix setDateRange typing issue

Francis Cao79af936c934b
diff --git a/src/store/app.ts b/src/store/app.ts
index 8fa1a0d5b..de6874ba8 100644
--- a/src/store/app.ts
+++ b/src/store/app.ts
@@ -40,7 +40,7 @@ export function setConfig(config: object) {
store.setState({ config });
}
-export function setDateRange(dateRange: object) {
+export function setDateRange(dateRange: string | object) {
store.setState({ dateRange });
}