From 5488f580055e951fb3016ce2437bc7d95eff89a9 Mon Sep 17 00:00:00 2001 From: Daniil Chervyakov Date: Thu, 14 Sep 2023 12:46:22 +0300 Subject: [PATCH] fix(AdaptiveTabs): prevent object convert to string (#101) --- src/components/AdaptiveTabs/AdaptiveTabs.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/AdaptiveTabs/AdaptiveTabs.tsx b/src/components/AdaptiveTabs/AdaptiveTabs.tsx index 78971e47..899fd245 100644 --- a/src/components/AdaptiveTabs/AdaptiveTabs.tsx +++ b/src/components/AdaptiveTabs/AdaptiveTabs.tsx @@ -72,10 +72,11 @@ class Tab extends React.Component { render() { const {active, disabled, hint, title = this.props.id} = this.props; + const stringTitle = (hint || typeof title === 'string' ? title : '') as string; return (
{title}