We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 256ca34 commit ce7b8bfCopy full SHA for ce7b8bf
src/components/views/panel/use-panel-item.ts
@@ -8,9 +8,8 @@ export const usePanelItem = () => {
8
const onItemClick = ({ item }: { item: ListScrollItem }) => {
9
const type = item?.type;
10
if (!type) return;
11
- const { path } = currentRoute.value;
12
- if (!path) return;
13
- const base = path.split('/')[1];
+ const base = currentRoute.value.name?.toString();
+ if (!base) return;
14
const id = item?.meta?.ids?.[type]?.trakt;
15
const showId = item?.meta?.ids?.show?.trakt;
16
const seasonNumber = item?.meta?.number?.season;
0 commit comments