Skip to content

Commit

Permalink
Reset chip when loading a new test
Browse files Browse the repository at this point in the history
  • Loading branch information
netalondon committed Feb 8, 2024
1 parent 9f8890d commit 90a9fc5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web/src/pages/chip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,10 @@ export const Chip = () => {
tst={[tst, setTst, state.controls.span]}
cmp={[cmp, setCmp]}
out={[out, setOut]}
onLoadTest={(tst, cmp) => compile.current({ tst, cmp })}
onLoadTest={(tst, cmp) => {
compile.current({ tst, cmp });
actions.reset();
}}
/>
);

Expand Down

0 comments on commit 90a9fc5

Please sign in to comment.