mirror of
https://github.com/hcengineering/platform.git
synced 2025-06-02 13:52:40 +00:00
UBERF-8339: Fix workspace selector sorting (#6792)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
7441fa146d
commit
563f44bb66
@ -259,7 +259,7 @@ export async function getWorkspaces (): Promise<Workspace[]> {
|
|||||||
if (adays === bdays) {
|
if (adays === bdays) {
|
||||||
return getWorkspaceSize(b) - getWorkspaceSize(a)
|
return getWorkspaceSize(b) - getWorkspaceSize(a)
|
||||||
}
|
}
|
||||||
return bdays - adays
|
return b.lastVisit - a.lastVisit
|
||||||
})
|
})
|
||||||
|
|
||||||
return workspaces
|
return workspaces
|
||||||
|
Loading…
Reference in New Issue
Block a user