fix: closes #12632, dont load data twice

This commit is contained in:
Barış Soner Uşaklı
2024-06-11 15:38:40 -04:00
parent 9af3a2daca
commit 66adfa2999
5 changed files with 40 additions and 38 deletions

View File

@@ -116,7 +116,7 @@ module.exports = function (middleware) {
}
try {
await renderMethod(template, { ...res.locals.templateValues, ...options }, fn);
await renderMethod(template, options, fn);
} catch (err) {
next(err);
}