forgot to replace this

This commit is contained in:
Lendemor 2024-12-18 19:39:59 +01:00
parent 40daefc3d6
commit 5384b93367

View File

@ -1,4 +1,5 @@
{% extends "web/pages/base_page.js.jinja2" %} {% extends "web/pages/base_page.js.jinja2" %}
{% from "web/pages/macros.js.jinja2" import renderHooks %}
{% block declaration %} {% block declaration %}
{% for custom_code in custom_codes %} {% for custom_code in custom_codes %}
@ -8,17 +9,7 @@
{% block export %} {% block export %}
export default function Component() { export default function Component() {
{% for hook, data in hooks.items() if data and data.position and data.position == const.hook_position.INTERNAL %} {{ renderHooks(hooks)}}
{{ hook }}
{% endfor %}
{% for hook, data in hooks.items() if not data or (not data.position or data.position == const.hook_position.PRE_TRIGGER) %}
{{ hook }}
{% endfor %}
{% for hook, data in hooks.items() if data and data.position and data.position == const.hook_position.POST_TRIGGER %}
{{ hook }}
{% endfor %}
return ( return (
{{utils.render(render, indent_width=0)}} {{utils.render(render, indent_width=0)}}