Skip to content

Commit be7c217

Browse files
committed
work on #387
1 parent da49429 commit be7c217

File tree

1 file changed

+2
-1
lines changed
  • packages/core/src/fields/viewFields/fields

1 file changed

+2
-1
lines changed

packages/core/src/fields/viewFields/fields/MathVF.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ export class MathVF extends AbstractViewField {
8080
const context = this.buildMathJSContext();
8181
try {
8282
// eslint-disable-next-line
83-
return parseLiteral(this.expression.evaluate(context)?.toString());
83+
const value: unknown = this.expression.evaluate(context);
84+
return typeof value === 'string' ? parseLiteral(value) : value;
8485
} catch (e) {
8586
if (e instanceof Error) {
8687
return this.handleComputeError(

0 commit comments

Comments
 (0)