mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 00:27:24 +00:00
lint fix + reset console output on project change.
This commit is contained in:
1 parent
660f25656c
commit
c8653e67dc
2 files changed
+4
-2
No files matched your search
@@ -68,12 +68,14 @@ export function ProjectView() {
|
||||
try {
|
||||
const projectData = await projectsManager.getProject(projectId);
|
||||
setProject(projectData);
|
||||
// Clear console messages when switching projects
|
||||
setConsoleMessages([]);
|
||||
} catch (error) {
|
||||
console.error('Failed to load project:', error);
|
||||
} finally {
|
||||
setIsLoading(false);
|
||||
}
|
||||
}, [projectId, projectsManager]);
|
||||
}, [projectId, projectsManager, setConsoleMessages]);
|
||||
|
||||
useEffect(() => {
|
||||
loadProject();
|
||||
|
||||
Reference in new issue
Block a user