diff options
Diffstat (limited to 'editor/actions/add_page.ml')
-rwxr-xr-x | editor/actions/add_page.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/actions/add_page.ml b/editor/actions/add_page.ml index 1da8e3f..dff2c2f 100755 --- a/editor/actions/add_page.ml +++ b/editor/actions/add_page.ml @@ -10,7 +10,7 @@ module M = struct = fun title -> title - let update + let process : t -> State.t -> State.t = fun {title} state -> let page_id = key_of_title title in @@ -36,7 +36,7 @@ let create () in Note.E.map - (fun v -> App.ev (module M) v) + (fun v -> App.dispatch (module M) v) (* Option.on_some trigger the event only when the pop up is validated. Closing the popup doesn't do anything. *) |