Replace _id by id
This commit is contained in:
+1
-1
@@ -15,7 +15,7 @@ export default function Awtis({pajTotal, awtisPouChakPaj, paj}) {
|
||||
<Pajinasyon pajTotal={pajTotal} paj={paj} />
|
||||
<Container>
|
||||
<Grid container spacing={{xs: 2, md: 3}}>
|
||||
{awtisPouChakPaj.map(anAwtis => <AwtisKat key={anAwtis._id} anAwtis={anAwtis} />)}
|
||||
{awtisPouChakPaj.map(anAwtis => <AwtisKat key={anAwtis.id} anAwtis={anAwtis} />)}
|
||||
</Grid>
|
||||
</Container>
|
||||
</HeadLayout>
|
||||
|
||||
@@ -55,8 +55,8 @@ export async function getServerSideProps({query}) {
|
||||
throw new Error('San répons')
|
||||
}
|
||||
|
||||
const {_id} = anTeks
|
||||
const komante = await jwennKomanteEpiTeksId(_id)
|
||||
const {id} = anTeks
|
||||
const komante = await jwennKomanteEpiTeksId(id)
|
||||
|
||||
return {
|
||||
props: {
|
||||
|
||||
Reference in New Issue
Block a user