1
0
Fork 0
mirror of synced 2024-07-06 15:00:49 +12:00

FIX: clicking on design tab while data tab loads does not navigate correctly (#13152)

* If still loading, try navigation later

* Set active tab even if still loading

* Refactor - timeout not needed!
This commit is contained in:
melohagan 2024-02-29 09:15:01 +00:00 committed by GitHub
parent af44a973b4
commit 0205db104d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -69,11 +69,12 @@
// brought back to the same screen.
const topItemNavigate = path => () => {
const activeTopNav = $layout.children.find(c => $isActive(c.path))
if (!activeTopNav) return
builderStore.setPreviousTopNavPath(
activeTopNav.path,
window.location.pathname
)
if (activeTopNav) {
builderStore.setPreviousTopNavPath(
activeTopNav.path,
window.location.pathname
)
}
$goto($builderStore.previousTopNavPath[path] || path)
}