Clear log on compile

This commit is contained in:
muzam
2022-02-08 15:08:38 +05:30
parent 8dde89fa9a
commit b6ab536a60

View File

@@ -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",