mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-13 21:27:46 +02:00
QFIX: Hide deleted workspaces from select workspace list (#9337)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -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)
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user