Skip to content

Commit

Permalink
fix(gr-sheet): handling formula citations
Browse files Browse the repository at this point in the history
  • Loading branch information
strogonoff committed Nov 25, 2024
1 parent 7d3f687 commit 6110738
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/gr-sheet/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -692,9 +692,12 @@ const SupportedSheets = {
parameters: parameters.trim() !== ''
? parameters.split(';').map(paramUUID => resolveReference(paramUUID, 'id'))
: [],
formulaCitation: formulaCitation ? resolveRelated(formulaCitation) : null,
formula: formula.trim() || null,
};
if (formulaCitation.trim()) {
item.formulaCitation = resolveRelated(formulaCitation);
} else if (formula.trim()) {
item.formula = formula;
}
return item;
},
}),
Expand Down

0 comments on commit 6110738

Please sign in to comment.