From 77ba874dd4fcd878a1d5747688d5366bbe993288 Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Sun, 28 Jul 2024 19:46:30 -0400 Subject: [PATCH] [ROMM-1020] Fix firmware pagination on mount --- .../components/Gallery/AppBar/Platform/FirmwareDrawer.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/Gallery/AppBar/Platform/FirmwareDrawer.vue b/frontend/src/components/Gallery/AppBar/Platform/FirmwareDrawer.vue index 160d9daae..48afaab72 100644 --- a/frontend/src/components/Gallery/AppBar/Platform/FirmwareDrawer.vue +++ b/frontend/src/components/Gallery/AppBar/Platform/FirmwareDrawer.vue @@ -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(); +});