diff --git a/src/components/project/virtual-sample/VirtualSample.vue b/src/components/project/virtual-sample/VirtualSample.vue index 0bf7b2b..5bbcc0b 100644 --- a/src/components/project/virtual-sample/VirtualSample.vue +++ b/src/components/project/virtual-sample/VirtualSample.vue @@ -114,6 +114,7 @@ const { step, isLoopAnimationEnabled, isDownloadTriggered, + isCompareModeEnabled, } = storeToRefs(useVirtualSampleStore()); const { isCommentsOpen, isCommentPanelEnabled, activeTracks, openedFile } = @@ -132,6 +133,9 @@ watch(isOpen, (newValue) => { router.push({ name: route.name }); openedFile.value = null; activeTracks.value = []; + if (!newValue) { + isCompareModeEnabled.value = false; + } }); const downloadText = computed(() => {