We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da49429 commit be7c217Copy full SHA for be7c217
packages/core/src/fields/viewFields/fields/MathVF.ts
@@ -80,7 +80,8 @@ export class MathVF extends AbstractViewField {
80
const context = this.buildMathJSContext();
81
try {
82
// eslint-disable-next-line
83
- return parseLiteral(this.expression.evaluate(context)?.toString());
+ const value: unknown = this.expression.evaluate(context);
84
+ return typeof value === 'string' ? parseLiteral(value) : value;
85
} catch (e) {
86
if (e instanceof Error) {
87
return this.handleComputeError(
0 commit comments