1
This commit is contained in:
@@ -178,9 +178,14 @@ export default function WorkflowGuide({ onSiteAdded }: WorkflowGuideProps) {
|
||||
onSiteAdded();
|
||||
}
|
||||
|
||||
// Dismiss guide and redirect to site settings with integrations tab
|
||||
// Dismiss guide first, then navigate after a small delay to ensure state is updated
|
||||
await dismissGuide();
|
||||
navigate(`/sites/${newSite.id}/settings?tab=integrations`);
|
||||
|
||||
// Use requestAnimationFrame to ensure DOM updates are complete before navigation
|
||||
// This prevents React from being null during navigation
|
||||
requestAnimationFrame(() => {
|
||||
navigate(`/sites/${newSite.id}/settings?tab=integrations`);
|
||||
});
|
||||
} catch (error: any) {
|
||||
toast.error(`Failed to create site: ${error.message}`);
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user