Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(collections): up-to-date lookup for collection_id
It appears something change in the Notion API which causes errors when working with recently created databases. This results in being unable to find the `collection_id` of a `CollectionViewBlock` which has downstream affects such as exceptions when trying to access the `title` property of the database and being unable to add rows to the collection. This commit changes how the `collection_id` is retrieved within the `CollectionViewBlock` class such that the lookup succeeds for newish and oldish databases. Fixes jamalex#367
- Loading branch information
0ebe677
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.
This fix solves the 'NoneType' issue with collection.add_row().