diff --git a/packages/client/src/components/MkNotes.vue b/packages/client/src/components/MkNotes.vue index 50e347c84..d07cab07c 100644 --- a/packages/client/src/components/MkNotes.vue +++ b/packages/client/src/components/MkNotes.vue @@ -59,7 +59,7 @@ function scrollTop() { scroll(tlEl.value, { top: 0, behavior: "smooth" }); } -function setTimer() { +const setTimer = () => { if ($store.state.enableInfiniteScroll && !interval.value) { interval.value = setInterval(() => { const viewport = document.documentElement.clientHeight;