diff --git a/apps/circuit-compiler/src/app/app.tsx b/apps/circuit-compiler/src/app/app.tsx index fe2dd5ccac..926345ea51 100644 --- a/apps/circuit-compiler/src/app/app.tsx +++ b/apps/circuit-compiler/src/app/app.tsx @@ -38,9 +38,6 @@ function App() { plugin.parse(path, content) } }) - plugin.on('filePanel', 'setWorkspace', async () => { - dispatch({ type: 'SET_FILE_PATH', payload: '' }) - }) setIsPluginActivated(true) }) @@ -103,10 +100,10 @@ function App() { (async () => { if (appState.autoCompile) await compileCircuit(plugin, appState) })() + dispatch({ type: 'SET_SIGNAL_INPUTS', payload: [] }) + dispatch({ type: 'SET_COMPILER_STATUS', payload: 'idle' }) + dispatch({ type: 'SET_COMPILER_FEEDBACK', payload: null }) } - dispatch({ type: 'SET_SIGNAL_INPUTS', payload: [] }) - dispatch({ type: 'SET_COMPILER_STATUS', payload: 'idle' }) - dispatch({ type: 'SET_COMPILER_FEEDBACK', payload: null }) }, [appState.filePath]) const setCurrentLocale = async () => {