mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-08-07 02:01:09 +02:00
fix: closes #12632, dont load data twice
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user