mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
fix(onboarding): redirect to agent-create if project exists but no agent is found
This commit is contained in:
@@ -119,6 +119,10 @@ export async function resolveOnboardingState(): Promise<ResolvedOnboardingState>
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (project) {
|
if (project) {
|
||||||
|
if (!agents || agents.length === 0) {
|
||||||
|
meta.resumeStepId = "agent-create";
|
||||||
|
return { stepId: "agent-create", flowData: fullData };
|
||||||
|
}
|
||||||
if (databases.length === 0) {
|
if (databases.length === 0) {
|
||||||
meta.resumeStepId = "db-settings";
|
meta.resumeStepId = "db-settings";
|
||||||
return { stepId: "db-settings", flowData: fullData };
|
return { stepId: "db-settings", flowData: fullData };
|
||||||
|
|||||||
Reference in New Issue
Block a user