Skip to content

Commit

Permalink
fix id type
Browse files Browse the repository at this point in the history
  • Loading branch information
ianmacartney committed Feb 23, 2024
1 parent 6139c37 commit 1609338
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/recording/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@ import { api } from '@/convex/_generated/api';
import { preloadQuery } from 'convex/nextjs';
import { getAuthToken } from '@/app/auth';
import RecordingPage from './recording';
import Header from '@/components/ui/Header';
import { Id } from '@/convex/_generated/dataModel';

const Page = async ({ params }: { params: { id: string } }) => {
const id = params.id as any;
const Page = async ({ params: { id } }: { params: { id: Id<'notes'> } }) => {
const token = await getAuthToken();
const preloadedNote = await preloadQuery(
api.notes.getNote,
Expand Down

0 comments on commit 1609338

Please sign in to comment.