Skip to content

Commit 36d2c04

Browse files
authored
QFIX: Hide deleted workspaces from select workspace list (#9337)
Signed-off-by: Andrey Sobolev <[email protected]>
1 parent afef6e0 commit 36d2c04

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/account/src/operations.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import {
2121
buildSocialIdString,
2222
concatLink,
2323
isActiveMode,
24+
isDeletingMode,
2425
isWorkspaceCreating,
2526
type MeasureContext,
2627
type Person,
@@ -1320,7 +1321,7 @@ export async function getUserWorkspaces (
13201321
const { account } = decodeTokenVerbose(ctx, token)
13211322

13221323
return (await db.getAccountWorkspaces(account)).filter(
1323-
(ws) => !ws.status.isDisabled || isWorkspaceCreating(ws.status.mode)
1324+
(ws) => isWorkspaceCreating(ws.status.mode) || !(isDeletingMode(ws.status.mode) || ws.status.isDisabled)
13241325
)
13251326
}
13261327

0 commit comments

Comments
 (0)