summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/roster-editor/src/Struct/CharacterRecord.elm')
-rw-r--r--src/roster-editor/src/Struct/CharacterRecord.elm8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/roster-editor/src/Struct/CharacterRecord.elm b/src/roster-editor/src/Struct/CharacterRecord.elm
index 62bfa93..de78f27 100644
--- a/src/roster-editor/src/Struct/CharacterRecord.elm
+++ b/src/roster-editor/src/Struct/CharacterRecord.elm
@@ -104,7 +104,7 @@ from_character char =
decoder : (Json.Decode.Decoder Type)
decoder =
- (Json.Decode.Pipeline.decode
+ (Json.Decode.succeed
Type
|> (Json.Decode.Pipeline.required "ix" Json.Decode.int)
|> (Json.Decode.Pipeline.required "nam" Json.Decode.string)
@@ -133,10 +133,8 @@ encode char =
(
"gls",
(Json.Encode.list
- (List.map
- (Json.Encode.string)
- char.glyph_ids
- )
+ (Json.Encode.string)
+ char.glyph_ids
)
)
]