Skip to content

Commit

Permalink
Fix link containing Next.js route group
Browse files Browse the repository at this point in the history
  • Loading branch information
ruchernchong committed Dec 2, 2024
1 parent fdde46e commit d3680c2
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions app/(dashboard)/cars/makes/[make]/columns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ export const columns: ColumnDef<Car>[] = [
cell: ({ row }) => {
const type = row.getValue("fuel_type") as string;
return (
<Link href={`/app/(dashboard)/cars/fuel-types/${type.toLowerCase()}`}>
{type}
</Link>
<Link href={`/app/cars/fuel-types/${type.toLowerCase()}`}>{type}</Link>
);
},
},
Expand All @@ -39,9 +37,7 @@ export const columns: ColumnDef<Car>[] = [
cell: ({ row }) => {
const type = row.getValue("vehicle_type") as string;
return (
<Link
href={`/app/(dashboard)/cars/vehicle-types/${type.toLowerCase()}`}
>
<Link href={`/app/cars/vehicle-types/${type.toLowerCase()}`}>
{type}
</Link>
);
Expand Down

0 comments on commit d3680c2

Please sign in to comment.