Skip to content

Commit

Permalink
fix: broken navigation when multiple viewer tabs are open (#876)
Browse files Browse the repository at this point in the history
  • Loading branch information
tonai authored Feb 13, 2023
1 parent 68115f1 commit b2a5ed8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/client/setup/root.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default function setupRoot() {
const routePath = router.currentRoute.value.path
if (!routePath.match(/^\/(\d+|presenter)\/?/))
return
if (+state.page !== +currentPage.value || +clicks.value !== +state.clicks) {
if (state.lastUpdate?.type === 'presenter' && (+state.page !== +currentPage.value || +clicks.value !== +state.clicks)) {
router.replace({
path: getPath(state.page),
query: {
Expand Down

0 comments on commit b2a5ed8

Please sign in to comment.