Skip to content

Commit 22cbd41

Browse files
fix: fix the infinite loop for v1
1 parent 9619a41 commit 22cbd41

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

v0/src/components/DialogBox/OpenOffline.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ function openProjectOffline() {
128128
// If no version, proceed directly
129129
targetVersion.value = "Legacy"
130130
SimulatorState.dialogBox.version_mismatch_dialog = true
131-
} else if (simulatorVersion && simulatorVersion != "v0") {
131+
} else if ( simulatorVersion != "v0") {
132132
// Set the targetVersion and show the version mismatch dialog
133133
targetVersion.value = simulatorVersion
134134
SimulatorState.dialogBox.version_mismatch_dialog = true

v1/src/components/DialogBox/OpenOffline.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ function openProjectOffline() {
128128
// If no version, proceed directly
129129
targetVersion.value = "Legacy"
130130
SimulatorState.dialogBox.version_mismatch_dialog = true
131-
} else if (simulatorVersion && simulatorVersion != "v0") {
131+
} else if ( simulatorVersion != "v1") {
132132
// Set the targetVersion and show the version mismatch dialog
133133
targetVersion.value = simulatorVersion
134134
SimulatorState.dialogBox.version_mismatch_dialog = true

0 commit comments

Comments
 (0)