diff options
| author | Grail Finder (aider) <wohilas@gmail.com> | 2025-03-29 14:55:08 +0300 |
|---|---|---|
| committer | Grail Finder (aider) <wohilas@gmail.com> | 2025-03-29 14:55:08 +0300 |
| commit | 0e37af2bb99ead053f79f97a08e90097b06d44a9 (patch) | |
| tree | c3a8cbad747b91be3d416b06592cdb7c4507429f /components/index.html | |
| parent | fd984eb3173ba9f7f3c9b9e073881e91ce2b4361 (diff) | |
fix: correct template scope and add question ID
Diffstat (limited to 'components/index.html')
| -rw-r--r-- | components/index.html | 2 |
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" |
