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:
parent
af44a973b4
commit
0205db104d
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue