(core) Fix lookups in default formulas

Test Plan: TODO

Reviewers: paulfitz

Reviewed By: paulfitz

Differential Revision: https://phab.getgrist.com/D2603
This commit is contained in:
Dmitry S
2020-09-09 21:48:08 -04:00
parent 166143557a
commit 2fbd3f1706
4 changed files with 135 additions and 6 deletions

View File

@@ -467,7 +467,7 @@ class Engine(object):
"""
Returns the compute frame currently being computed, or None if there isn't one.
"""
return self._compute_stack[-1] if self._compute_stack else None
return self._compute_stack[-1] if self._compute_stack and self._compute_stack[-1].node else None
def _use_node(self, node, relation, row_ids=[]):
# This is used whenever a formula accesses any part of any record. It's hot code, and