Fixes editing box regression.

This commit is contained in:
Dominik Picheta 2018-05-19 20:57:45 +01:00
commit c4431ebf2e

View file

@ -58,7 +58,7 @@ when defined(js):
(s: int, r: kstring) => onEditPost(s, r, state))
proc render*(state: EditBox, post: Post): VNode =
if state.post.id != post.id:
if (not state.post.isNil) and state.post.id != post.id:
state.rawContent = none[kstring]()
state.status = Http200