From eb2a6f3d8c334a415d3593fd71675409689c09fe Mon Sep 17 00:00:00 2001 From: YoyoJesus Date: Sat, 28 Dec 2024 23:02:08 -0500 Subject: [PATCH] Fix data-loading issue --- src/views/HelpPage.vue | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/views/HelpPage.vue b/src/views/HelpPage.vue index 13279b1..34ba5c6 100644 --- a/src/views/HelpPage.vue +++ b/src/views/HelpPage.vue @@ -14,11 +14,8 @@ import InformationCard from "../components/InformationCard.vue"; const informations = ref([]); const repo = remult.repo(Information); onMounted(async () => { - repo.find({ - skip: 4 // Skips the first 4 items (starts from the 5th, allows the fall-fest stuff to stay Anna's legacy and all that) - }).then(e => { - informations.value = e; - }); + const allData = await repo.find(); // Fetch all data + informations.value = allData.slice(4); // Skip the first 4 items });