Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

minor fix

Rodrigo Mansueli Nunes61f82420268e
diff --git a/apps/www/_blog/2022-08-09-slack-consolidate-slackbot-to-consolidate-messages.mdx b/apps/www/_blog/2022-08-09-slack-consolidate-slackbot-to-consolidate-messages.mdx
index 4820e72768b..666d0f5d470 100644
--- a/apps/www/_blog/2022-08-09-slack-consolidate-slackbot-to-consolidate-messages.mdx
+++ b/apps/www/_blog/2022-08-09-slack-consolidate-slackbot-to-consolidate-messages.mdx
@@ -407,7 +407,7 @@ if __name__ == '__main__':
Of course, we aren't doing proper Python example if we don't make a test notebook available:
-<a href="https://colab.research.google.com/github/mansueli/SlackConsolidate/blob/main/SlackConsolidate_bot.ipynb"><img src=https://colab.research.google.com/assets/colab-badge.svg alt="Open in colab"/></a>
+<a href="https://colab.research.google.com/github/mansueli/SlackConsolidate/blob/main/SlackConsolidate_bot.ipynb"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open in colab"/></a>
## Conclusion
diff --git a/apps/www/lib/posts.tsx b/apps/www/lib/posts.tsx
index 199551e06e2..7d21e4c66ee 100644
--- a/apps/www/lib/posts.tsx
+++ b/apps/www/lib/posts.tsx
@@ -136,13 +136,14 @@ export const getPostdata = async (slug: string, directory: string) => {
export const getAllCategories = (directory: Directories) => {
const posts = getSortedPosts(directory)
let categories: any = []
-
+ if (posts){
posts.map((post: any) => {
// add tags into categories array
post.tags.map((tag: string) => {
if (!categories.includes(tag)) return categories.push(tag)
})
})
+}
return categories
}