mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	fix: truncator (#1148)
* fix: truncator * Update src/component/common/StringTruncator/StringTruncator.tsx Co-authored-by: Thomas Heartman <thomas@getunleash.ai> Co-authored-by: Thomas Heartman <thomas@getunleash.ai>
This commit is contained in:
		
							parent
							
								
									d4f46eaf2e
								
							
						
					
					
						commit
						23b9cbaf03
					
				@ -17,7 +17,7 @@ const StringTruncator = ({
 | 
			
		||||
}: IStringTruncatorProps) => {
 | 
			
		||||
    return (
 | 
			
		||||
        <ConditionallyRender
 | 
			
		||||
            condition={text.length > maxLength}
 | 
			
		||||
            condition={(text?.length ?? 0) > maxLength}
 | 
			
		||||
            show={
 | 
			
		||||
                <Tooltip title={text} arrow>
 | 
			
		||||
                    <span
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user