Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/utils/Evaluator.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,8 @@ export function interpolate(...args) {
* @returns {void}
*/
export function registerEvaluator(override) {
if(override.noeval){
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we just make the Protected-Eval Evaluator class inherit from the base class that's now in @formio/core? That seems safer to me (and more type safe at the end of the day!) than just trying to copy parameters and hope they exist

Evaluator.noeval = override.noeval
}
Evaluator = override;
}