From e323d4c69251f83794823ff2f9f1cb6ac7f25f0e Mon Sep 17 00:00:00 2001 From: David Ralph Date: Wed, 28 Apr 2021 16:16:27 +0100 Subject: [PATCH] fix: photoinformation not appearing when turning background off and on again --- src/components/widgets/background/Background.jsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/widgets/background/Background.jsx b/src/components/widgets/background/Background.jsx index 39951e6a..3d91ce2f 100644 --- a/src/components/widgets/background/Background.jsx +++ b/src/components/widgets/background/Background.jsx @@ -264,6 +264,10 @@ export default class Background extends React.PureComponent { if (this.state.video === true) { document.getElementById('backgroundVideo').style.display = 'block'; } else { + if (this.state.photoInfo.hidden === false) { + document.querySelector('.photoInformation').style.display = 'block'; + } + element.style.display = 'block'; }