Skip to content

Commit

Permalink
Fix Menu Node form
Browse files Browse the repository at this point in the history
We must use a module here in order to define the consts globally.
  • Loading branch information
tvdeyen committed Sep 20, 2024
1 parent fb78869 commit 2afb2d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/alchemy/admin/nodes/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<%= f.submit button_label %>
<% end %>

<script>
<script type="module">
const nodeName = document.getElementById("node_name")
const nodeUrl = document.getElementById("node_url")
const form = document.getElementById("node_form")
Expand Down

0 comments on commit 2afb2d7

Please sign in to comment.