small usability changes
This commit is contained in:
parent
8385f08923
commit
7fafa35b4b
5 changed files with 23 additions and 46 deletions
|
|
@ -84,7 +84,7 @@ const computeSuggestions = (
|
|||
return result;
|
||||
}
|
||||
|
||||
export function InputBlock({ state, setState, score, onCancel, typeInfo }: InputBlockProps) {
|
||||
export function InputBlock({ state, setState, score, onCancel, typeInfo, evalResult }: InputBlockProps) {
|
||||
const {text, focus} = state;
|
||||
const globalContext = useContext(GlobalContext);
|
||||
const env = typeInfo.env;
|
||||
|
|
@ -144,7 +144,7 @@ export function InputBlock({ state, setState, score, onCancel, typeInfo }: Input
|
|||
},
|
||||
};
|
||||
|
||||
const err = typeInfo.err || evalExpr(state, env).err;
|
||||
const err = typeInfo.err || evalResult.err;
|
||||
|
||||
return <>
|
||||
<Input
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue