From 8a37ed668e21dfee60d308de67e185ab2c7ea407 Mon Sep 17 00:00:00 2001 From: dakkar Date: Tue, 6 Aug 2024 20:28:50 +0100 Subject: [PATCH] fix variable name is MkMediaList --- packages/frontend/src/components/MkMediaList.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/frontend/src/components/MkMediaList.vue b/packages/frontend/src/components/MkMediaList.vue index 9e78b69574..4bc2b9fba7 100644 --- a/packages/frontend/src/components/MkMediaList.vue +++ b/packages/frontend/src/components/MkMediaList.vue @@ -178,14 +178,14 @@ onMounted(() => { textBox.className = 'pswp__alt-text _acrylic'; el.appendChild(textBox); - pwsp.on('change', () => { - if (pwsp.currSlide?.data.comment) { + pswp.on('change', () => { + if (pswp.currSlide?.data.comment) { textBox.style.display = ''; } else { textBox.style.display = 'none'; } - textBox.textContent = pwsp.currSlide?.data.comment; + textBox.textContent = pswp.currSlide?.data.comment; }); }, });