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:
parent
6bc2153d0f
commit
49bb7bea1f
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
---
|
||||
|
||||
|
|
Loading…
Reference in a new issue