We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f241237 commit 914d982Copy full SHA for 914d982
2 files changed
src/app/(sections)/news/[slug]/layout.tsx
@@ -3,7 +3,7 @@ import { readDocuments } from '@/db/api/documents'
3
import classes from './page.module.css'
4
5
const NewsLayout = async ({ children }: { children: React.ReactNode }) => {
6
- const documents = await readDocuments()
+ const documents = await readDocuments({ type: 'newsItem' })
7
8
return (
9
<div className={classes.layout}>
src/app/(sections)/news/page.tsx
@@ -9,7 +9,7 @@ export const metadata = {
}
10
11
const NewsPage = async () => {
12
13
14
15
<div className={classes.component}>
0 commit comments