Skip to content

Commit

Permalink
notify of link errors
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaskern authored and thangngoc89 committed Sep 4, 2018
1 parent 5eb2740 commit 2c41242
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions client/src_editor/Editor_Blocks_Utils.re
Expand Up @@ -236,3 +236,12 @@ let concatCodeBlocksToString = blocks =>
}
)
);
exception Not_Implemented;

let getNameFromLink = link =>
Editor_Types.Link.(
switch (link) {
| Internal(internalLink) => internalLink.name
| External () => raise(Not_Implemented)
}
);
1 change: 1 addition & 0 deletions client/src_editor/Editor_Links.re
Expand Up @@ -65,6 +65,7 @@ module EmptyLink = {
| UpdateName(string);

let component = ReasonReact.reducerComponent("Editor_EmptyLink");

let make = (~status, ~onSubmit, ~onFetched=?, ~name="", ~id="", _children) => {
...component,
initialState: () => {name, id},
Expand Down

0 comments on commit 2c41242

Please sign in to comment.