Fixes editing box regression.
This commit is contained in:
parent
0a53392258
commit
c4431ebf2e
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue