Skip to content

Commit

Permalink
🔖 v1.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
SilentDepth committed May 4, 2023
2 parents f182b89 + 7bbe637 commit c16ca8a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions layouts/docs/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ function resolveHref (page: PageMeta, pageMap: Record<string, PageMeta>): string
function getFirstOpenableChild (page: PageMeta): PageMeta | null {
for (const id of page.child ?? []) {
const p = pageMap[id]
// Sometimes Notion saves inaccessible pages for whatever reason...
if (!p) continue
if (p.slug || p.hasContent) {
return p
} else if (p.child?.length) {
Expand Down
3 changes: 2 additions & 1 deletion lib/server/notion-api/notion-database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ export default class NotionDatabase {

// Every page ID contained in the database
const pageIds = [...new Set(
Object.values(collectionQuery[collection.id])
databasePage.view_ids
.map(viewId => collectionQuery[collectionId][viewId])
.map(({ collection_group_results: results }) => {
if (results?.hasMore) {
console.error('Collection query result not complete!')
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@osmium-blog/osmium",
"version": "1.2.3",
"version": "1.2.4",
"homepage": "https://github.com/osmium-blog/osmium",
"license": "MIT",
"author": {
Expand Down

1 comment on commit c16ca8a

@vercel
Copy link

@vercel vercel bot commented on c16ca8a May 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.