fix(ui): honor governance tab deep links on mobile
All checks were successful
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 19s
CD Pipeline / build-and-deploy (push) Successful in 7m42s
CD Pipeline / post-deploy-checks (push) Successful in 1m1s
All checks were successful
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 19s
CD Pipeline / build-and-deploy (push) Successful in 7m42s
CD Pipeline / post-deploy-checks (push) Successful in 1m1s
This commit is contained in:
@@ -72,6 +72,9 @@ export default function GovernancePage({
|
||||
setRequestedTab(tab)
|
||||
|
||||
if (!tab) return
|
||||
if (window.location.hash !== `#${tab}`) {
|
||||
window.history.replaceState(null, '', `${window.location.pathname}${window.location.search}#${tab}`)
|
||||
}
|
||||
let cancelled = false
|
||||
const scrollToRequestedSection = () => {
|
||||
if (cancelled) return
|
||||
|
||||
Reference in New Issue
Block a user