瀏覽代碼

empty the post when adding a new post

that might be handled in multiple places, though?
Lucas Stadler 11 年之前
父節點
當前提交
adb9c11e0a
共有 1 個文件被更改,包括 1 次插入0 次删除
  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