diff --git a/state/actions/compileCode.ts b/state/actions/compileCode.ts index 3203a6f..4676020 100644 --- a/state/actions/compileCode.ts +++ b/state/actions/compileCode.ts @@ -25,6 +25,7 @@ export const compileCode = async (activeId: number) => { } // Set loading state to true state.compiling = true; + state.logs = [] try { const res = await fetch(process.env.NEXT_PUBLIC_COMPILE_API_ENDPOINT, { method: "POST",