Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion notion/block/collection/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ def add_row(self, update_views=True, **kwargs) -> "CollectionRowBlock":
if update_views:
# make sure the new record is inserted at the end of each view
for view in self.parent.views:
if isinstance(view, CalendarView):
# TODO: why we skip CalendarView? can we remove that 'if'?
if not view or isinstance(view, CalendarView):
continue
view.set("page_sort", view.get("page_sort", []) + [row_id])

Expand Down