Skip to content

Commit cd98294

Browse files
committed
fix: sync file selection from query param after compare data loads
1 parent a003e34 commit cd98294

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/pages/compare/[...path].vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ const filteredChanges = computed(() => {
7272
7373
// Sync selection with ?file= query for shareable links
7474
watch(
75-
() => route.query.file,
76-
filePath => {
75+
[() => route.query.file, compare],
76+
([filePath]) => {
7777
if (initializedFromQuery.value || !filePath || !compare.value) return
7878
const match = allChanges.value.find(f => f.path === filePath)
7979
if (match) {

0 commit comments

Comments
 (0)