mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-13 21:53:43 +01:00
Make annual value is the default when opening new plans page with hashchange event
GitOrigin-RevId: b2525c314f06a990492112a7280e921987205169
This commit is contained in:
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user