Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add default view option #137

Merged
merged 21 commits into from
Oct 24, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix switching to weekly view from year
  • Loading branch information
asimonok committed Oct 23, 2023
commit 29ef87fc52d7d8d21d00f77c263550cd21592d66
2 changes: 1 addition & 1 deletion src/hooks/useCalendarRange.ts
Original file line number Diff line number Diff line change
@@ -81,7 +81,7 @@ export const useCalendarRange = (timeRange: TimeRange, onChangeTimeRange: (timeR
/**
* Open Week by clicking on day in Year View
*/
if (currentView === View.YEAR) {
if (currentView === View.YEAR && action === 'DATE') {
view = View.WEEK;
}