better default tune + fix dirty state
This commit is contained in:
parent
e3e3a8404a
commit
04502b05d4
2 changed files with 43 additions and 3 deletions
|
|
@ -15,7 +15,7 @@ function useEvaluator({ code, evalOnMount = true }) {
|
|||
try {
|
||||
// TODO: let user inject custom eval function?
|
||||
const { pattern: _pattern } = await _evaluate(code);
|
||||
setActiveCode(activeCode);
|
||||
setActiveCode(code);
|
||||
setPattern(_pattern);
|
||||
setError();
|
||||
} catch (err) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue