fix scoped variable

author
Marijn Besseling <njirambem@gmail.com> · 2026-01-27 19:58 UTC
commit
446aa3c83b69cfb323882ce1ed40a05401d8040c
parent
2c31362df1
tree
browse at this commit

1 file changed +1 -1

Blog/Components/Pages/Query.razor.js +1 -1

@@ -26,11 +26,11 @@ export async function onLoad() {
26 26 input.onkeydown = async (e) => {
27 27 if (e.key === "Enter" && !e.shiftKey) {
28 28 e.preventDefault()
29 + const results = getById("results")
29 30
30 31 try {
31 32 let result = await dactal.query(input.value)
32 33
33 - const results = getById("results")
34 34 results.replaceChildren(renderValue(result.slice(0, 100)))
35 35
36 36 if (result.length > 100) {