Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use result for formula hyperlinks
  • Loading branch information
holm authored and papandreou committed Apr 25, 2018
commit 40865c998488658e3b6467ef10fbffd26acdc893
9 changes: 7 additions & 2 deletions lib/xlsx/xform/sheet/cell-xform.js
Original file line number Diff line number Diff line change
Expand Up @@ -427,9 +427,14 @@ utils.inherits(CellXform, BaseXform, {
// look for hyperlink
var hyperlink = options.hyperlinkMap[model.address];
if (hyperlink) {
if (model.type === Enums.ValueType.Formula) {
model.text = model.result;
model.result = undefined;
} else {
model.text = model.value;
model.value = undefined;
}
model.type = Enums.ValueType.Hyperlink;
model.text = model.value;
model.value = undefined;
model.hyperlink = hyperlink;
}
}
Expand Down