From 36d2c04d1e602d25bc65a2c481d29b2528f06bc9 Mon Sep 17 00:00:00 2001 From: Andrey Sobolev Date: Mon, 23 Jun 2025 19:03:19 +0700 Subject: [PATCH] QFIX: Hide deleted workspaces from select workspace list (#9337) Signed-off-by: Andrey Sobolev --- server/account/src/operations.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/account/src/operations.ts b/server/account/src/operations.ts index d227664779..f85c74b6b2 100644 --- a/server/account/src/operations.ts +++ b/server/account/src/operations.ts @@ -21,6 +21,7 @@ import { buildSocialIdString, concatLink, isActiveMode, + isDeletingMode, isWorkspaceCreating, type MeasureContext, type Person, @@ -1320,7 +1321,7 @@ export async function getUserWorkspaces ( const { account } = decodeTokenVerbose(ctx, token) return (await db.getAccountWorkspaces(account)).filter( - (ws) => !ws.status.isDisabled || isWorkspaceCreating(ws.status.mode) + (ws) => isWorkspaceCreating(ws.status.mode) || !(isDeletingMode(ws.status.mode) || ws.status.isDisabled) ) }