fix: files not loading when creating a new project

This commit is contained in:
Akhileshrangani4
2024-08-31 20:31:20 -04:00
committed by James Murdza
parent 2da60ff4e4
commit 1502047bf2
2 changed files with 10 additions and 9 deletions

View File

@ -49,10 +49,8 @@ export default function Dashboard({
const q = searchParams.get("q")
const router = useRouter()
useEffect(() => {
if (!sandboxes) {
router.refresh()
}
useEffect(() => { // update the dashboard to show a new project
router.refresh()
}, [sandboxes])
return (