mirror of
https://github.com/apache/superset.git
synced 2026-05-07 08:54:23 +00:00
test(frontend): use absolute path for src imports (#9761)
* test(frontend): use absolute path for src imports * Upgrade prettier, fix eslint
This commit is contained in:
@@ -195,10 +195,7 @@ export default class AnnotationLayer extends React.PureComponent {
|
||||
isValidFormula(value, annotationType) {
|
||||
if (annotationType === ANNOTATION_TYPES.FORMULA) {
|
||||
try {
|
||||
mathjs
|
||||
.parse(value)
|
||||
.compile()
|
||||
.eval({ x: 0 });
|
||||
mathjs.parse(value).compile().eval({ x: 0 });
|
||||
} catch (err) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user