@univerjs/sheets-formula 1.0.0-rc.0 → 1.0.1

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/lib/cjs/facade.js CHANGED
@@ -100,7 +100,8 @@ var FWorkbookEngineFormulaMixin = class extends _univerjs_sheets_facade.FWorkboo
100
100
  cellMatrix.forValue((row, column, cell) => {
101
101
  var _arrayFormulaSheet$ro;
102
102
  if (!cell) return;
103
- const errorType = (0, _univerjs_engine_formula.extractFormulaError)(cell, !!(arrayFormulaSheet === null || arrayFormulaSheet === void 0 || (_arrayFormulaSheet$ro = arrayFormulaSheet[row]) === null || _arrayFormulaSheet$ro === void 0 ? void 0 : _arrayFormulaSheet$ro[column]));
103
+ const arrayFormulaCellData = arrayFormulaSheet === null || arrayFormulaSheet === void 0 || (_arrayFormulaSheet$ro = arrayFormulaSheet[row]) === null || _arrayFormulaSheet$ro === void 0 ? void 0 : _arrayFormulaSheet$ro[column];
104
+ const errorType = (0, _univerjs_engine_formula.extractFormulaError)(cell, !!arrayFormulaCellData);
104
105
  if (errorType) errors.push({
105
106
  sheetName,
106
107
  row,
@@ -137,7 +138,8 @@ var FRangeEngineFormulaMixin = class extends _univerjs_sheets_facade.FRange {
137
138
  var _arrayFormulaSheet$ro;
138
139
  const cell = cellMatrix.getValue(row, column);
139
140
  if (!cell) continue;
140
- const errorType = (0, _univerjs_engine_formula.extractFormulaError)(cell, !!(arrayFormulaSheet === null || arrayFormulaSheet === void 0 || (_arrayFormulaSheet$ro = arrayFormulaSheet[row]) === null || _arrayFormulaSheet$ro === void 0 ? void 0 : _arrayFormulaSheet$ro[column]));
141
+ const arrayFormulaCellData = arrayFormulaSheet === null || arrayFormulaSheet === void 0 || (_arrayFormulaSheet$ro = arrayFormulaSheet[row]) === null || _arrayFormulaSheet$ro === void 0 ? void 0 : _arrayFormulaSheet$ro[column];
142
+ const errorType = (0, _univerjs_engine_formula.extractFormulaError)(cell, !!arrayFormulaCellData);
141
143
  if (errorType) errors.push({
142
144
  sheetName,
143
145
  row,