Skip to content
Snippets Groups Projects
Commit 6cae0c01 authored by Sabed Ger's avatar Sabed Ger
Browse files

Fixed Decode-bug

parent 34c0634d
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,7 @@ viewEditor model =
, Html.section [class "section"] []
, viewImage model
, case model.httpLoadResult of
Ok s -> text s
Ok s -> text ""
Err e -> text ("Could not load shapes: "++(httpErrorToString e))
]
, case (getModalFromState model.state) of
......
......@@ -259,7 +259,7 @@ resultDecode jsonString =
),
(JD.field ( "ellipse")
(JD.map4
(\a b c d -> Rectangle a b c d)
(\a b c d -> Ellipse a b c d)
(JD.field "cx" JD.string)
(JD.field "cy" JD.string)
(JD.field "rx" JD.string)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment