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>pull/21833/head
parent
cb5237a18b
commit
d8a9b84af9
|
@ -274,7 +274,7 @@ class Pill extends React.Component {
|
||||||
const {yOffset} = this.props;
|
const {yOffset} = this.props;
|
||||||
|
|
||||||
let tip;
|
let tip;
|
||||||
if (this.state.hover) {
|
if (this.state.hover && resource) {
|
||||||
tip = <Tooltip label={resource} yOffset={yOffset} />;
|
tip = <Tooltip label={resource} yOffset={yOffset} />;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue