Skip to content
Snippets Groups Projects
Commit 65dd776d authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt :koala:
Browse files

fix: remove irrelevant code

The show selector no longer influences the application state.
parent 9bd28b32
No related branches found
No related tags found
No related merge requests found
...@@ -33,13 +33,4 @@ watchEffect(() => { ...@@ -33,13 +33,4 @@ watchEffect(() => {
void router.push({ name: 'show-episodes', params: { showId: props.show.id.toString() } }) void router.push({ name: 'show-episodes', params: { showId: props.show.id.toString() } })
} }
}) })
watchEffect(() => {
const showId = episode.value?.showId
// if episode.showId doesn’t match the provided show.id,
// the user might have switched shows with the show selector.
if (showId && showId !== props.show.id) {
void router.push({ name: 'show', params: { showId: props.show.id.toString() } })
}
})
</script> </script>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment