use state query in repl
+ move locations to context
This commit is contained in:
parent
29bdfb2d90
commit
f1362b1c94
5 changed files with 25 additions and 23 deletions
|
|
@ -18,7 +18,7 @@ export default function CodeMirror({ value, onChange, options, editorDidMount }:
|
|||
}
|
||||
|
||||
export const markEvent = (editor) => (event) => {
|
||||
const locs = event.value.locations;
|
||||
const locs = event.context.locations;
|
||||
if (!locs || !editor) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue