TSK-1242 Short link for organization in recruit (#3008)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2023-04-18 15:02:34 +06:00
committed by GitHub
parent 5f0566bb9f
commit d5f1668532
5 changed files with 48 additions and 19 deletions
@@ -232,7 +232,10 @@
loc.path[2] = (currentAppAlias as string) ?? resolved.defaultLocation.path[2]
loc.path[3] = currentSpace ?? (currentSpecial as string) ?? resolved.defaultLocation.path[3]
if (loc.path[3] !== undefined) {
loc.path[4] = currentSpecial ?? (asideId as string) ?? resolved.defaultLocation.path[4]
loc.path[4] =
(currentSpace !== undefined ? currentSpecial : undefined) ??
(asideId as string) ??
resolved.defaultLocation.path[4]
} else {
loc.path.length = 4
}