Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.
TypeScript analyticsanalytics-dashboardclickhouseelixirgoogle-analyticsmarketingopen-source-analyticsphoenixplausible-analyticspostgresqlprivacyprivacy-friendlyself-hostedsimple-analyticsstatisticstailwindcssweb-analyticswebsite-analyticswebsite-statswebsite-tracking
Remove queryWithPeriod from DatePicker
birjolaxew7f1f3a00eccc
diff --git a/assets/js/dashboard/datepicker.js b/assets/js/dashboard/datepicker.jsindex 855884b5e5..fa4dc45f38 100644--- a/assets/js/dashboard/datepicker.js+++ b/assets/js/dashboard/datepicker.js@@ -24,22 +24,6 @@ class DatePicker extends React.Component {document.removeEventListener('mousedown', this.handleClick, false);}- queryWithPeriod(period, dates) {- const query = new URLSearchParams(window.location.search)- query.set('period', period)- query.delete('date'); query.delete('from'); query.delete('to')-- if (dates) {- for (const key of Object.keys(dates)) {- query.set(key, dates[key])- }- } else {- query.delete('date')- }-- return query.toString()- }-handleKeyup(e) {const {query, history} = this.props