summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorGrail Finder (aider) <wohilas@gmail.com>2025-03-29 14:55:08 +0300
committerGrail Finder (aider) <wohilas@gmail.com>2025-03-29 14:55:08 +0300
commit0e37af2bb99ead053f79f97a08e90097b06d44a9 (patch)
treec3a8cbad747b91be3d416b06592cdb7c4507429f /components
parentfd984eb3173ba9f7f3c9b9e073881e91ce2b4361 (diff)
fix: correct template scope and add question ID
Diffstat (limited to 'components')
-rw-r--r--components/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/index.html b/components/index.html
index 76ba0a4..5af9278 100644
--- a/components/index.html
+++ b/components/index.html
@@ -17,7 +17,7 @@
{{range $index, $option := .Options}}
<button
hx-post="/answer"
- hx-vals='{"selected": "{{$index}}", "question_id": "{{.ID}}"}'
+ hx-vals='{"selected": "{{$index}}", "question_id": "{{$.ID}}"}'
hx-target="#ancestor"
hx-swap="outerHTML"
class="option-button"