fix: no need page reload on project building/restoring completes

This commit is contained in:
phamhieu authored and Joshen Lim committed 2022-04-27 14:43:31 +07:00
1 parent 8a1f94168a
commit 5f10351dae
1 file changed
+6 -1
+6 -1
View File
@@ -20,7 +20,12 @@ const RedirectToDashboard: FC = () => {
// Use redirect to reload store data properly after project has been
// been created or unpaused, this is necessarily especially for unpausing
// so that the dashboard fetches the updated connection strings
window.location.replace(`/project/${ref}`)
// window.location.replace(`/project/${ref}`)
// TODO: for experiment only
// Cos we already pulling new connectionString after project building/restoring
// just use normal router.push is enough
router.push(`/project/${ref}`)
}, [])
return null
}