1
0
Fork 0
mirror of synced 2024-06-27 02:20:35 +12:00
This commit is contained in:
Adria Navarro 2024-03-21 11:43:50 +01:00
parent 8d43bc814e
commit 1a8510358b

View file

@ -42,7 +42,7 @@ export function getJsHelperList() {
helpers = {}
for (let collection of Object.values(externalCollections)) {
for (let [key, func] of Object.entries<any>(collection)) {
for (let [key, func] of Object.entries<any>(collection())) {
// Handlebars injects the hbs options to the helpers by default. We are adding an empty {} as a last parameter to simulate it
helpers[key] = (...props: any) => func(...props, {})
}