Merge pull request #1041 from rommapp/romm-1020

[ROMM-1020] Fix firmware pagination on mount
This commit is contained in:
Georges-Antoine Assi
2024-07-29 00:25:08 +00:00
committed by GitHub

View File

@@ -9,7 +9,7 @@ import type { Events } from "@/types/emitter";
import { formatBytes } from "@/utils";
import type { Emitter } from "mitt";
import { storeToRefs } from "pinia";
import { inject, ref, watch } from "vue";
import { inject, ref, watch, onMounted } from "vue";
import { useDisplay } from "vuetify";
// Props
@@ -60,6 +60,10 @@ function updateDataTablePages() {
watch(itemsPerPage, async () => {
updateDataTablePages();
});
onMounted(() => {
updateDataTablePages();
});
</script>
<template>