Skip to content

Commit

Permalink
use core utils for evaluation instead of local ones
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyNikipelau committed Mar 13, 2024
1 parent 91617ed commit de76351
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@ import jtz from 'jstimezonedetect';
import { lodashOperators } from './jsonlogic/operators';
import dompurify from 'dompurify';
import { getValue } from './formUtils';
import { Utils } from '@formio/core';
import Evaluator from './Evaluator';
import ConditionOperators from './conditionOperators';
const interpolate = Evaluator.interpolate;
const { fetch } = fetchPonyfill({
Promise: Promise
});

export * from './formUtils';
export * from Utils;

// Configure JsonLogic
lodashOperators.forEach((name) => jsonLogic.add_operation(`_${name}`, _[name]));
Expand Down

0 comments on commit de76351

Please sign in to comment.