Skip to content

Commit

Permalink
Fix data-loading issue
Browse files Browse the repository at this point in the history
  • Loading branch information
YoyoJesus committed Dec 29, 2024
1 parent 69ee5ef commit eb2a6f3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/views/HelpPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
</script>
<style scoped lang="scss">
Expand Down

0 comments on commit eb2a6f3

Please sign in to comment.