Skip to content

fix: fallback when there are no posts - #1

Open
gconsigli wants to merge 1 commit into
thelocalhoststudio:mainfrom
gconsigli:main
Open

fix: fallback when there are no posts#1
gconsigli wants to merge 1 commit into
thelocalhoststudio:mainfrom
gconsigli:main

Conversation

@gconsigli

Copy link
Copy Markdown

When posts are deleted, it raises a TypeError:

Cannot read properties of undefined (reading 'toLocaleDateString')

This PR creates a fallback to prevent this error when there are no posts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant