Skip to content

Commit

Permalink
Fix setting with_imported to false explicitly in the URL (#4148)
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertJoonas committed May 27, 2024
1 parent 78c5762 commit 4d7a67d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/dashboard/stats/graph/with-imported-switch.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function WithImportedSwitch({site, topStatData}) {
if (isQueryingImportedPeriod || isComparingImportedPeriod) {
const withImported = topStatData.with_imported;
const toggleColor = withImported ? " dark:text-gray-300 text-gray-700" : " dark:text-gray-500 text-gray-400"
const target = url.setQuery('with_imported', !withImported)
const target = url.setQuery('with_imported', (!withImported).toString())
const tip = withImported ? "" : "do not ";

return (
Expand Down

0 comments on commit 4d7a67d

Please sign in to comment.