From ee8fb13fce15591b27324b0492d26a0e266a3632 Mon Sep 17 00:00:00 2001 From: Oleg Berezhnoy <42677987+bereg2k@users.noreply.github.com> Date: Thu, 8 Dec 2022 17:14:29 +0100 Subject: [PATCH] Fix shortened Session Id display (#511) * Fixed Session Id display in the SessionId -> Link * Code review fixes * Update ui/src/components/Sessions/index.js Co-authored-by: Kirill Merkushev --- ui/src/components/Sessions/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/components/Sessions/index.js b/ui/src/components/Sessions/index.js index cbb5ba61..8adae7ba 100644 --- a/ui/src/components/Sessions/index.js +++ b/ui/src/components/Sessions/index.js @@ -68,7 +68,7 @@ const Session = ({ id, session: { quota, caps } }) => { {quota} /{" "} - {id.substring(0, id.indexOf("-"))} + {id.substring(0, id.indexOf('-') === -1 ? 8 : id.indexOf('-'))}