@builttocreate/engine-utils 1.8.2 → 1.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tableHelper.js +1 -1
- package/package.json +1 -1
package/dist/tableHelper.js
CHANGED
|
@@ -517,7 +517,7 @@ var resolveOperandValue = function resolveOperandValue(sourceOperand, targetOper
|
|
|
517
517
|
// It creates and infinite circular loop of trying to resovle a value
|
|
518
518
|
// because they both depend on eachother.
|
|
519
519
|
|
|
520
|
-
if (sourceOperand && hasCircularOperandReference(targetValue, sourceOperand)) return '* INVALID - Circular Reference'; // 4. If targetCell has a formula value
|
|
520
|
+
if (sourceOperand && hasCircularOperandReference(targetValue, sourceOperand) || targetOperand && hasCircularOperandReference(targetValue, targetOperand)) return '* INVALID - Circular Reference'; // 4. If targetCell has a formula value
|
|
521
521
|
|
|
522
522
|
if (targetValue !== undefined && targetValue.charAt(0) === '=') {
|
|
523
523
|
var result = getFormulaResult(sourceOperand, targetValue, tableLookup);
|