Skip to content

Commit

Permalink
fix: initial list view for uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
lideming committed Aug 28, 2024
1 parent 94976ea commit 6e8a3c4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Track/ListIndex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,10 @@ export class ListIndex {
id = this.listView.get(0).listInfo.id;
}
if (id !== null) {
router.nav(["list", id.toString()], { pushState: false });
router.nav(
id === 0 ? ["uploads"] : ["list", id.toString()],
{ pushState: false },
);
}
}
},
Expand Down

0 comments on commit 6e8a3c4

Please sign in to comment.