Skip to content

Commit

Permalink
Fix visits comparison date range when selected in line chart
Browse files Browse the repository at this point in the history
  • Loading branch information
acelaya committed Oct 9, 2024
1 parent b5653e3 commit 217ee9b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org).

## [Unreleased]
## [0.8.1] - 2024-10-09
### Added
* *Nothing*

Expand All @@ -20,6 +20,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
### Fixed
* [#461](https://github.com/shlinkio/shlink-web-component/issues/461) Ensure `shortUrlsList.confirmDeletion` setting is `true` in any case, except when explicitly set to `false`.
* [#237](https://github.com/shlinkio/shlink-web-component/issues/237) Set darker color for previous period in charts, when light theme is enabled.
* [#246](https://github.com/shlinkio/shlink-web-component/issues/246) Fix selected date range not reflected in visits comparison date range selector, when selecting it in the line chart via drag'n'drop.


## [0.8.0] - 2024-10-07
Expand Down
2 changes: 1 addition & 1 deletion src/visits/visits-comparison/VisitsComparison.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export const VisitsComparison: FC<VisitsComparisonProps> = ({
<DateRangeSelector
disabled={loading}
defaultText="All visits"
dateRangeOrInterval={activeInterval ?? initialInterval.current}
dateRangeOrInterval={activeInterval ?? dateRange ?? initialInterval.current}
onDatesChange={setDates}
/>
</div>
Expand Down

0 comments on commit 217ee9b

Please sign in to comment.