luci-base: fix (again) rendering ucode templates in template target

Fixes: #6111
Fixes: a5d21dadbd ("luci-base: fix rendering ucode templates from `template` target")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2022-11-22 15:00:36 +01:00
parent e9f0236381
commit 9d10c2e671

View file

@ -775,7 +775,7 @@ function run_action(request_path, lang, tree, resolved, action) {
switch (action?.type) {
case 'template':
if (runtime.is_ucode_template(action.path))
runtime.render_ucode(action.path);
runtime.render(action.path, {});
else
render_action(() => {
runtime.call('luci.dispatcher', 'render_lua_template', action.path);