From de7635145634ff1048baf6cfb01e7a2462da2621 Mon Sep 17 00:00:00 2001 From: Alexey Nikipelau Date: Thu, 14 Mar 2024 01:31:40 +0300 Subject: [PATCH] use core utils for evaluation instead of local ones --- src/utils/utils.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/utils.js b/src/utils/utils.js index fd25598918..ea2187b3dd 100644 --- a/src/utils/utils.js +++ b/src/utils/utils.js @@ -8,6 +8,7 @@ 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; @@ -15,7 +16,7 @@ const { fetch } = fetchPonyfill({ Promise: Promise }); -export * from './formUtils'; +export * from Utils; // Configure JsonLogic lodashOperators.forEach((name) => jsonLogic.add_operation(`_${name}`, _[name]));