Fix searchbar showing None if there's nothing written
This commit is contained in:
parent
ec68ef897c
commit
733f0abf52
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@
|
||||||
<div class='searchBar'>
|
<div class='searchBar'>
|
||||||
<form action="/search" method="get">
|
<form action="/search" method="get">
|
||||||
<div class="search_entry">
|
<div class="search_entry">
|
||||||
<input type='text' id="q" name="q" value='{{ QueryValues["q"] }}' placeholder="Enter a level name or code"/>
|
<input type='text' id="q" name="q" value='{{ QueryValues["q"] if QueryValues["q"] is not none }}' placeholder="Enter a level name or code"/>
|
||||||
<button class="searchButton" id='searchButton' type='submit'>🔍</button>
|
<button class="searchButton" id='searchButton' type='submit'>🔍</button>
|
||||||
</div>
|
</div>
|
||||||
<details>
|
<details>
|
||||||
|
|
Loading…
Reference in a new issue