Skip to content

Commit

Permalink
Fix ViewTransitions example (#8976)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewp authored Nov 1, 2023
1 parent 6bc2153 commit 49bb7be
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/view-transitions/src/pages/movies/[id].astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ import Layout from '../../layouts/Layout.astro';
import MovieDetails from '../../components/MovieDetails.astro';
import { getDataEntryById } from 'astro:content';
// Data collection bug?
const id: any = '/src/content/movies/' + Astro.params.id;
const result = await getDataEntryById('movies', id);
const result = await getDataEntryById('movies', Astro.params.id as any);
const data = result.data.data;
---

Expand Down

0 comments on commit 49bb7be

Please sign in to comment.