mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-24 08:28:12 +00:00
fix(react): bolding field name if single token (#3080)
This commit is contained in:
parent
bd1b90d312
commit
a5bd0c5c3a
@ -31,6 +31,10 @@ export default function schemaTitleRenderer(fieldPath: string) {
|
||||
}
|
||||
}
|
||||
|
||||
if (!lastPath) {
|
||||
return <Typography.Text strong>{firstPath}</Typography.Text>;
|
||||
}
|
||||
|
||||
return (
|
||||
<span>
|
||||
<LighterText>{`${firstPath}${lastPath ? '.' : ''}`}</LighterText>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user