Skip to content

Commit

Permalink
remove unecessary params
Browse files Browse the repository at this point in the history
  • Loading branch information
Marquise Rosier committed Feb 2, 2024
1 parent a7274a6 commit bc8c6e8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/core/Navbar/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const DashboardNavbar = ({

const copyToClipboard = async () => {
const params = new URLSearchParams();
const currDates = getDataDates(dataEndpoint);
const currDates = getDataDates();
const currStart = currDates['start'] ? parseDate(currDates['start']) : null;
const currEnd = currDates['end'] ? parseDate(currDates['end']) : null;
const qps = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function DashboardChartView({
totalPageViews += parseInt(pageview.pageviews, 10);
})

const {start, end} = getDataDates(dataEndpoint);
const {start, end} = getDataDates();
const currStart = start ? parseDate(start) : null;
const currEnd = end ? parseDate(end) : null;

Expand Down
6 changes: 3 additions & 3 deletions src/controllers/Filters/DashboardQueryFilter.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function DashboardQueryFilter({
} = useStore();
const dates = intervalOffsetToDates(0, 30);
const [range, setRange] = React.useState(() => {
let currDataDates = getDataDates(dataEndpoint);
let currDataDates = getDataDates();
const currStart = currDataDates['start'] ? parseDate(currDataDates['start']) : null;
const currEnd = currDataDates['end'] ? parseDate(currDataDates['end']) : null;
const urlParameters = new URLSearchParams(window.location.search);
Expand Down Expand Up @@ -87,11 +87,11 @@ export function DashboardQueryFilter({
// query complete, hide loading graphic
// data = window.dashboard[dataEndpoint].results.data;
setFilterData(window.dashboard[dataEP].results.data);
const currDates = getDataDates(dataEndpoint);
const currDates = getDataDates();
const currStart = currDates['start'] ? parseDate(currDates['start']) : null;
const currEnd = currDates['end'] ? parseDate(currDates['end']) : null;
if(currStart && currEnd){
setRange({ start: parseDate(getDataDates(dataEndpoint)['start']), end: parseDate(getDataDates(dataEndpoint)['end']) });
setRange({ start: parseDate(getDataDates()['start']), end: parseDate(getDataDates()['end']) });
}
setDomainKey(domainkey);
setGlobalUrl(url);
Expand Down
2 changes: 1 addition & 1 deletion static/js/main.js.map

Large diffs are not rendered by default.

0 comments on commit bc8c6e8

Please sign in to comment.