Merge "feat: update id render to support number format"

This commit is contained in:
Zuul 2022-10-12 06:31:31 +00:00 committed by Gerrit Code Review
commit e31ee72b7e

View File

@ -160,7 +160,7 @@ const getLinkUrl = (prefix, id) => {
}; };
export const getIdRender = (value, copyable = true, isLink = true) => { export const getIdRender = (value, copyable = true, isLink = true) => {
const short = (value || '').substring(0, 8); const short = `${value || ''}`.substring(0, 8);
const shortRender = isLink ? ( const shortRender = isLink ? (
<span className="link-class">{short}</span> <span className="link-class">{short}</span>
) : ( ) : (