Don't show tooltip if there is nothing to display
We do this because resource is undefined for @room Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
cb5237a18b
commit
d8a9b84af9
1 changed files with 1 additions and 1 deletions
|
@ -274,7 +274,7 @@ class Pill extends React.Component {
|
|||
const {yOffset} = this.props;
|
||||
|
||||
let tip;
|
||||
if (this.state.hover) {
|
||||
if (this.state.hover && resource) {
|
||||
tip = <Tooltip label={resource} yOffset={yOffset} />;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue