From b6ab536a604dfde4e01452d7ca0440e8ba47fbf9 Mon Sep 17 00:00:00 2001 From: muzam Date: Tue, 8 Feb 2022 15:08:38 +0530 Subject: [PATCH] Clear log on compile --- state/actions/compileCode.ts | 1 + 1 file changed, 1 insertion(+) 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",