From 9a9521c57030fea29e631f4737a2d65b493ca3bc Mon Sep 17 00:00:00 2001 From: F4ilji Date: Sun, 5 Jul 2026 11:11:24 +0500 Subject: [PATCH] fix(vikon): initialize selectedParts arrays to prevent crash on checkbox click --- resources/js/Pages/Dashboard/VikonUpdates/Index.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/resources/js/Pages/Dashboard/VikonUpdates/Index.vue b/resources/js/Pages/Dashboard/VikonUpdates/Index.vue index fbd949c..1619a4f 100644 --- a/resources/js/Pages/Dashboard/VikonUpdates/Index.vue +++ b/resources/js/Pages/Dashboard/VikonUpdates/Index.vue @@ -175,6 +175,11 @@ const updateError = ref(null); const versionInfo = ref({ current_version: props.current_version, has_update: false, latest_version: null }); const accessInfo = ref({ has_access: false, error: null }); const selectedParts = ref({}); +if (props.parts) { + for (const [id, moduleParts] of Object.entries(props.parts)) { + selectedParts.value[id] = []; + } +} const updatingPart = ref(null); const partResults = ref([]);