feat: update id render to support number format
Update the getIdRender func to support resource id of numeric type Change-Id: I0bec014d1b8e1726ae6092f8d2dd0710151283fb
This commit is contained in:
parent
27f127f86d
commit
fb3078f740
@ -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