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:
parent
e9f0236381
commit
9d10c2e671
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue