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('-'))}