luci-base: fix (again) rendering ucode templates in `template` target
authorJo-Philipp Wich <jo@mein.io>
Tue, 22 Nov 2022 14:00:36 +0000 (15:00 +0100)
committerJo-Philipp Wich <jo@mein.io>
Tue, 22 Nov 2022 14:01:32 +0000 (15:01 +0100)
Fixes: #6111
Fixes: a5d21dadbd ("luci-base: fix rendering ucode templates from `template` target")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/ucode/dispatcher.uc

index 50201be0f4c75194c33a7952e9d11068fc2aa4cd..9d310bb5c274cdfc2286ffd8e1d91422fa2dd033 100644 (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);