Fix bug decode, make date optional
This commit is contained in:
父節點
383dd93637
當前提交
56749e29c4
@ -247,4 +247,4 @@ decodeVideo url =
|
||||
Decode.map3 (\x y -> Video x url y)
|
||||
(Decode.field "title" Decode.string)
|
||||
(Decode.map Basics.round (Decode.field "duration" Decode.float))
|
||||
(Decode.nullable (Decode.field "date" Iso8601.decoder))
|
||||
(Decode.maybe (Decode.field "date" Iso8601.decoder))
|
||||
|
@ -284,6 +284,7 @@ videoView zone playlist video =
|
||||
[ Element.column
|
||||
[ Element.width (Element.fillPortion 2)
|
||||
, Element.spacing 10
|
||||
, Element.alignTop
|
||||
]
|
||||
[ Keyed.el
|
||||
[ Element.width Element.fill
|
||||
|
載入中…
x
新增問題並參考
Block a user