Skip to content

Commit 335e682

Browse files
MirrorCYcswilson252
authored andcommitted
Fix offline dev update confirm handler not starting upload (PhotonVision#2393)
Fixes a bug where offline update did not start after confirming the dev-version warning dialog. The confirm action was using an incorrect file reference in template context, so the selected JAR was not passed correctly to the upload handler. The dialog closed, but no upload request was sent. This change corrects the confirm handler so the selected file is passed properly and the upload/install flow starts as expected.
1 parent 354a40d commit 335e682

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

photon-client/src/components/settings/DeviceCard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ watch(metricsHistorySnapshot, () => {
555555
:variant="theme.global.name.value === 'LightTheme' ? 'elevated' : 'outlined'"
556556
@click="
557557
offlineUpdateDialog.show = false;
558-
handleOfflineUpdate(offlineUpdate.value.files[0]);
558+
handleOfflineUpdate(offlineUpdate.files[0]);
559559
"
560560
>
561561
<v-icon start class="open-icon" size="large"> mdi-upload </v-icon>

0 commit comments

Comments
 (0)