Put lazy2 back
Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
parent
10d1edbc32
commit
7d07b2dee9
|
@ -118,8 +118,8 @@ viewRuleSection env sec =
|
|||
viewRules : String -> String -> Html Msg
|
||||
viewRules renderProgs progs =
|
||||
Html.div [ class "bergamot-section-list" ] <|
|
||||
case (run program renderProgs, run program progs) of
|
||||
(Just renderProg, Just prog) -> List.filterMap (viewRuleSection renderProg) prog.sections
|
||||
case progAndRenderProg progs renderProgs of
|
||||
Ok (prog, renderProg) -> List.filterMap (viewRuleSection renderProg) prog.sections
|
||||
_ -> []
|
||||
|
||||
type Error
|
||||
|
@ -245,7 +245,7 @@ view m =
|
|||
, viewTab m.tab
|
||||
(Html.textarea [ onInput SetProgram ] [ Html.text m.program ])
|
||||
(Html.textarea [ onInput SetRenderProgram ] [ Html.text m.renderProgram ])
|
||||
(viewRules m.renderProgram m.program)
|
||||
(Html.Lazy.lazy2 viewRules m.renderProgram m.program)
|
||||
] ++
|
||||
viewIfError progsOrErr
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue
Block a user