Merge "feat: update id render to support number format"
This commit is contained in:
commit
e31ee72b7e
@ -160,7 +160,7 @@ const getLinkUrl = (prefix, id) => {
|
||||
};
|
||||
|
||||
export const getIdRender = (value, copyable = true, isLink = true) => {
|
||||
const short = (value || '').substring(0, 8);
|
||||
const short = `${value || ''}`.substring(0, 8);
|
||||
const shortRender = isLink ? (
|
||||
<span className="link-class">{short}</span>
|
||||
) : (
|
||||
|
Loading…
Reference in New Issue
Block a user