Skip to content

Commit eb2a6f3

Browse files
committed
Fix data-loading issue
1 parent 69ee5ef commit eb2a6f3

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/views/HelpPage.vue

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,8 @@ import InformationCard from "../components/InformationCard.vue";
1414
const informations = ref([]);
1515
const repo = remult.repo(Information);
1616
onMounted(async () => {
17-
repo.find({
18-
skip: 4 // Skips the first 4 items (starts from the 5th, allows the fall-fest stuff to stay Anna's legacy and all that)
19-
}).then(e => {
20-
informations.value = e;
21-
});
17+
const allData = await repo.find(); // Fetch all data
18+
informations.value = allData.slice(4); // Skip the first 4 items
2219
});
2320
</script>
2421
<style scoped lang="scss">

0 commit comments

Comments
 (0)