From 49bb7bea1fdb4f7b6f4ed0a6c0f0a824982cd084 Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Wed, 1 Nov 2023 12:48:04 -0400 Subject: [PATCH] Fix ViewTransitions example (#8976) --- examples/view-transitions/src/pages/movies/[id].astro | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/view-transitions/src/pages/movies/[id].astro b/examples/view-transitions/src/pages/movies/[id].astro index c8a2e26b7b..9b7326f4e2 100644 --- a/examples/view-transitions/src/pages/movies/[id].astro +++ b/examples/view-transitions/src/pages/movies/[id].astro @@ -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; ---