fix(vikon): initialize selectedParts arrays to prevent crash on checkbox click

This commit is contained in:
F4ilji
2026-07-05 11:11:24 +05:00
parent af1fb094d2
commit 9a9521c570
@@ -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([]);