mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-13 03:26:30 +00:00
Fix crash for invalid timeline queries
This commit is contained in:
parent
30bab22dae
commit
5510330f70
1 changed files with 4 additions and 1 deletions
|
@ -13,7 +13,10 @@ proc renderSearch*(): VNode =
|
|||
button(`type`="submit"): icon "search"
|
||||
|
||||
proc renderTweetSearch*(timeline: Timeline; prefs: Prefs; path: string): VNode =
|
||||
let users = get(timeline.query).fromUser
|
||||
let users =
|
||||
if timeline.query.isSome: get(timeline.query).fromUser
|
||||
else: @[]
|
||||
|
||||
buildHtml(tdiv(class="timeline-container")):
|
||||
tdiv(class="timeline-header"):
|
||||
text users.join(" | ")
|
||||
|
|
Loading…
Reference in a new issue