Browse Source

empty the post when adding a new post

that might be handled in multiple places, though?
Lucas Stadler 11 years ago
parent
commit
adb9c11e0a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      elm/Stream.elm

+ 1 - 0
elm/Stream.elm

@ -65,6 +65,7 @@ update action model =
65 65
66 66
      AddPost _ -> { model |
67 67
                      isEditing <- False,
68
                      newPost <- Post.empty,
68 69
                      posts <- let p = model.newPost
69 70
                               in { p | created <- model.referenceDate } :: model.posts }
70 71