0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

Fix ViewTransitions example (#8976)

This commit is contained in:
Matthew Phillips 2023-11-01 12:48:04 -04:00 committed by GitHub
parent 6bc2153d0f
commit 49bb7bea1f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
---