Duplicating an application containing a table with a field of type=link can raise a KeyError if the page was deleted.
Corresponds to Sentry issue 5428353684.
- Create a page with a table element.
- Give the table a
CollectionFieldoftype=link. - Point the field to a different page (
pageB) - Delete
pageB. - Duplicate the application.
- A
KeyErroris raised when we try and pluck the page ID out ofid_mapping["builder_pages"]indeserialize_property.