mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Make annual value is the default when opening new plans page with hashchange event
GitOrigin-RevId: b2525c314f06a990492112a7280e921987205169
This commit is contained in:
parent
08596f1fb3
commit
8c792dd63e
1 changed files with 1 additions and 0 deletions
|
@ -105,6 +105,7 @@ function selectViewFromHash() {
|
|||
if (view) {
|
||||
// make sure the selected view is valid
|
||||
if (document.querySelector(`[data-ol-plans-v2-view-tab="${view}"]`)) {
|
||||
currentMonthlyAnnualSwitchValue = 'annual'
|
||||
selectTab(view)
|
||||
// clear the hash so it doesn't persist when switching plans
|
||||
window.location.hash = ''
|
||||
|
|
Loading…
Reference in a new issue