Fixes bug with thread list loading twice on refresh.
This commit is contained in:
parent
7f5e68331c
commit
8acaca298b
1 changed files with 1 additions and 1 deletions
|
|
@ -163,7 +163,7 @@ when defined(js):
|
|||
if state.status != Http200:
|
||||
return renderError("Couldn't retrieve threads.")
|
||||
|
||||
if state.list.isNone:
|
||||
if state.list.isNone and (not state.loading):
|
||||
ajaxGet(makeUri("threads.json"), @[], onThreadList)
|
||||
|
||||
return buildHtml(tdiv(class="loading loading-lg"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue