Skip to content

Commit

Permalink
Moved util functions to the template execution context as functions c…
Browse files Browse the repository at this point in the history
…annot be passed as imports
  • Loading branch information
andrewbrazzatti committed Dec 16, 2024
1 parent b7cafad commit 5f75e3a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions typescript/api/services/TriggerService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,6 @@ export module Services {
moment: moment,
numeral: numeral,
_ : _,
addError: addError,
getErrorMessage: getErrorMessage,
TranslationService: TranslationService
}

Expand All @@ -337,7 +335,8 @@ export module Services {
template = compiledTemplate;
}

const errorFieldList = template({oid:oid, record: record, options: options});
const errorFieldList = template({oid:oid, record: record, options: options, addError: addError,
getErrorMessage: getErrorMessage});


const errorMap = {
Expand Down

0 comments on commit 5f75e3a

Please sign in to comment.