Skip to content
This repository has been archived by the owner on Dec 17, 2024. It is now read-only.

Commit

Permalink
Fix shortened Session Id display (#511)
Browse files Browse the repository at this point in the history
* Fixed Session Id display in the SessionId -> Link

* Code review fixes

* Update ui/src/components/Sessions/index.js

Co-authored-by: Kirill Merkushev <[email protected]>
  • Loading branch information
bereg2k and lanwen authored Dec 8, 2022
1 parent ad8cda0 commit ee8fb13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/components/Sessions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const Session = ({ id, session: { quota, caps } }) => {
<SessionId>
<span className="quota">{quota}</span> /{" "}
<Link to={deleting ? `#` : `/sessions/${id}`} className="id">
{id.substring(0, id.indexOf("-"))}
{id.substring(0, id.indexOf('-') === -1 ? 8 : id.indexOf('-'))}
</Link>
</SessionId>
<Link className="identity" to={deleting ? `#` : `/sessions/${id}`}>
Expand Down

0 comments on commit ee8fb13

Please sign in to comment.