Skip to content

Commit

Permalink
Added fix to external sheet update
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitryOrlov committed Jan 17, 2025
1 parent b89185d commit 3b7fc6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cell/model/WorkbookElems.js
Original file line number Diff line number Diff line change
Expand Up @@ -16194,7 +16194,8 @@ function RangeDataManagerElem(bbox, data)
this.RefersTo = defNames.wb[this.Name].getRef();
//need init from range + updateFromSheet from data set
if (this.RefersTo) {
this.parent.updateSheetData(sheetName, sheet, [AscCommonExcel.g_oRangeCache.getAscRange(this.RefersTo.split("!")[1])]);
let exclamationMarkIndex = this.RefersTo.lastIndexOf("!");
this.parent.updateSheetData(sheetName, sheet, [AscCommonExcel.g_oRangeCache.getAscRange(this.RefersTo.slice(exclamationMarkIndex + 1))]);
}

isChanged = true;
Expand Down

0 comments on commit 3b7fc6b

Please sign in to comment.