From 90a9fc5c6112856a0e69d63839af14af2a136ee5 Mon Sep 17 00:00:00 2001 From: Neta London Date: Thu, 8 Feb 2024 14:31:03 +0200 Subject: [PATCH] Reset chip when loading a new test --- web/src/pages/chip.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/src/pages/chip.tsx b/web/src/pages/chip.tsx index 34ef3ca02..157092d7f 100644 --- a/web/src/pages/chip.tsx +++ b/web/src/pages/chip.tsx @@ -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(); + }} /> );