Fix backdrop panel empty image

This commit is contained in:
Dariusz Niemczyk 2021-08-19 19:26:19 +02:00
parent 5a1633d53c
commit 3f1c35d71c
No known key found for this signature in database
GPG key ID: 3E8DC619E3C59A05

View file

@ -140,12 +140,13 @@ export default class BackdropPanel extends React.PureComponent<IProps, IState> {
public render() {
if (!this.props.backgroundImage) return null;
return <div className="mx_BackdropPanel">
<img
{ this.state?.llpImage !== 'data:,' && <img
className="mx_BackdropPanel--canvas"
src={this.state.llpImage} />
<img
src={this.state.llpImage} /> }
{ this.state?.lpImage !== 'data:,' && <img
className="mx_BackdropPanel--canvas"
src={this.state.lpImage} />
src={this.state.lpImage} /> }
<canvas
ref={this.leftLeftPanelRef}
className="mx_BackdropPanel--canvas"