Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dk14 committed Aug 10, 2020
1 parent 850361d commit db53be6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion marlowe-playground-client/src/MainFrame.purs
Expand Up @@ -266,8 +266,9 @@ handleAction s (HandleActusBlocklyMessage (ActusBlockly.CurrentTerms flavour ter
ActusBlockly.F -> runAjax $ flip runReaderT s $ (Server.postActusGeneratestatic parsedTerms)
case result of
Success contractAST -> do
void $ toSimulation $ Simulation.handleAction s (ST.SetEditorText contractAST)
selectView Simulation
void $ toSimulation $ Simulation.handleAction s (ST.SetEditorText contractAST)

Failure e -> void $ query _actusBlocklySlot unit (ActusBlockly.SetError ("Server error! " <> (showErrorDescription (runAjaxError e).description)) unit)
_ -> void $ query _actusBlocklySlot unit (ActusBlockly.SetError "Unknown server error!" unit)

Expand Down

0 comments on commit db53be6

Please sign in to comment.