Skip to content

Commit ce7b8bf

Browse files
committed
fix(web): change from path to name base item routing
1 parent 256ca34 commit ce7b8bf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/components/views/panel/use-panel-item.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ export const usePanelItem = () => {
88
const onItemClick = ({ item }: { item: ListScrollItem }) => {
99
const type = item?.type;
1010
if (!type) return;
11-
const { path } = currentRoute.value;
12-
if (!path) return;
13-
const base = path.split('/')[1];
11+
const base = currentRoute.value.name?.toString();
12+
if (!base) return;
1413
const id = item?.meta?.ids?.[type]?.trakt;
1514
const showId = item?.meta?.ids?.show?.trakt;
1615
const seasonNumber = item?.meta?.number?.season;

0 commit comments

Comments
 (0)