From ddc19e004211ce4282c2c28b08dafadd84a62cc5 Mon Sep 17 00:00:00 2001 From: Hans Date: Tue, 13 Jun 2023 07:00:42 +0700 Subject: [PATCH] make sure this.state.isEllipsisActive is bool --- src/components/DisplayNames/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/DisplayNames/index.js b/src/components/DisplayNames/index.js index fd1bcaf8a6e0..9f4dcc9459c2 100644 --- a/src/components/DisplayNames/index.js +++ b/src/components/DisplayNames/index.js @@ -111,7 +111,7 @@ class DisplayNames extends PureComponent { {index < this.props.displayNamesWithTooltips.length - 1 && } ))} - {this.props.displayNamesWithTooltips.length > 1 && this.state.isEllipsisActive && ( + {this.props.displayNamesWithTooltips.length > 1 && Boolean(this.state.isEllipsisActive) && ( {/* There is some Gap for real ellipsis so we are adding 4 `.` to cover */}