Fixes bug with thread list loading twice on refresh.

This commit is contained in:
Dominik Picheta 2018-05-18 12:01:00 +01:00
commit 8acaca298b

View file

@ -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"))