Skip to content

Commit

Permalink
Handle null parent type case in notion (#1318)
Browse files Browse the repository at this point in the history
  • Loading branch information
philipperolet authored Sep 8, 2023
1 parent 1a118a5 commit b0f480c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions connectors/src/connectors/notion/lib/parents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ async function _getParents(
return parents;
}
switch (pageOrDb.parentType) {
case null:
case "workspace":
return parents;
case "block":
Expand Down

0 comments on commit b0f480c

Please sign in to comment.