@re-venue/ui-core-react 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -255,15 +255,15 @@ export function AppShell({
|
|
|
255
255
|
|
|
256
256
|
function onWorkspaceTitleClick(workspaceId: string) {
|
|
257
257
|
const url = workspaceNavItem?.url
|
|
258
|
-
|
|
258
|
+
guardNavigation(() => {
|
|
259
259
|
onSwitchWorkspace?.(workspaceId)
|
|
260
|
-
if (!expanded.has(workspaceId)) {
|
|
260
|
+
if (!url && expanded.has(workspaceId)) {
|
|
261
|
+
return
|
|
262
|
+
}
|
|
263
|
+
if (!url) {
|
|
261
264
|
toggleWorkspace(workspaceId)
|
|
265
|
+
return
|
|
262
266
|
}
|
|
263
|
-
return
|
|
264
|
-
}
|
|
265
|
-
guardNavigation(() => {
|
|
266
|
-
onSwitchWorkspace?.(workspaceId)
|
|
267
267
|
window.location.assign(url)
|
|
268
268
|
})
|
|
269
269
|
}
|