Skip to content

Commit 018a133

Browse files
committed
fix(MainLayout/Header/Workspace): refresh workspace list when clicking dropdown
1 parent 43a06b6 commit 018a133

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

  • packages/ui/src/layout/MainLayout/Header

packages/ui/src/layout/MainLayout/Header/OrgWorkspaceBreadcrumbs/index.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ const OrgWorkspaceBreadcrumbs = () => {
118118

119119
const handleWorkspaceClick = (event) => {
120120
setWorkspaceAnchorEl(event.currentTarget)
121+
122+
// Refresh workspace list when dropdown opens
123+
getWorkspacesByUserIdApi.request(user.id)
121124
}
122125

123126
const handleOrgClose = () => {

packages/ui/src/layout/MainLayout/Header/WorkspaceSwitcher/index.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ const WorkspaceSwitcher = () => {
9999

100100
const handleClick = (event) => {
101101
setAnchorEl(event.currentTarget)
102+
103+
// Refresh workspace list when dropdown opens
104+
getWorkspacesByOrganizationIdUserIdApi.request(user.activeOrganizationId, user.id)
102105
}
103106

104107
const handleClose = () => {

0 commit comments

Comments
 (0)