chronark / chronark.com

https://chronark.com
MIT License
682 stars 382 forks source link

Project/page.tsx bugs #28

Closed Potatooff closed 1 year ago

Potatooff commented 1 year ago

I ran the project locally and the website works as expected but once i click on project i get this error

Error: Cannot read properties of undefined (reading 'slug')

<div className="flex flex-col w-full gap-8 mx-auto border-t border-gray-900/10 lg:mx-0 lg:border-t-0 ">
                        {[top2, top3].map((project) => (
                            <Card key={project.slug}>
                                <Article project={project} views={views[project.slug] ?? 0} />
                            </Card>
                        ))}
                    </div>

image

Potatooff commented 1 year ago

I Managed to fix it, hahha, Beautiful Website!

TechTyphoon commented 1 year ago

I Managed to fix it, hahha, Beautiful Website!

how did you do that?

Potatooff commented 1 year ago

Rechecking variables name because i am pretty sure i made a mistake between the text and the variable name

ruwaifatahir commented 1 year ago

@Potatooff Can you please share how exactly you fixed the error? I'm experiencing the same error.