-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: hide functions list if package has no functions #122
Conversation
@@ -154,6 +158,8 @@ export const getServerSideProps: GetServerSideProps = async ({ | |||
); | |||
const metadata = await res.json(); | |||
|
|||
console.log({topics: metadata.topics}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this log
packageVersion={metadata.version} | ||
/> | ||
{ | ||
metadata.topics.length > 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
metadata.topics.length > 0 | |
metadata.topics?.length > 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tiny fixes and it's good to go!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Small ui fix to remove the functions section if there aren't any functions in the package. I think it looks cleaner. (readme will be fixed once merged)
Before:
After: