mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Fix a bug that occurs after remaing a table containing a RefList column.
Summary: This can happen after "Detach" is used on a summary table. Includes a unittest reproducing the problem case. Test Plan: Included unittest fails without the one-line tweak. Reviewers: paulfitz Reviewed By: paulfitz Differential Revision: https://phab.getgrist.com/D2672
This commit is contained in:
@@ -330,7 +330,7 @@ class BaseReferenceColumn(BaseColumn):
|
||||
# self._data may include values for non-existent rows; it works here because those values are
|
||||
# falsy, which makes them ignored by self._update_references).
|
||||
for row_id, value in enumerate(self._data):
|
||||
if isinstance(value, int):
|
||||
if self.type_obj.is_right_type(value):
|
||||
self._update_references(row_id, None, value)
|
||||
|
||||
def sample_value(self):
|
||||
|
||||
Reference in New Issue
Block a user