diff --git a/packages/utils/src/components/FieldLabel/index.tsx b/packages/utils/src/components/FieldLabel/index.tsx index 39cd1ef2d39e..684707951f57 100644 --- a/packages/utils/src/components/FieldLabel/index.tsx +++ b/packages/utils/src/components/FieldLabel/index.tsx @@ -157,7 +157,7 @@ const FieldLabelFunction: React.ForwardRefRenderFunction< {prefix} {typeof str === 'string' - ? str?.toString()?.substr?.(0, valueMaxLength) + ? str?.toString()?.slice?.(0, valueMaxLength) : str} {tail}