mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-01-21 13:08:05 -05:00
fix: redirect agent uploads to specific agent page instead of builder
- Changed redirect destination from `/build?flowID=${response.id}` to `/library/agents/${response.id}`
- Users now navigate directly to their uploaded agent's page in the library
- Removed unnecessary query parameter construction
Co-authored-by: Nicholas Tindle <ntindle@users.noreply.github.com>
This commit is contained in:
@@ -82,8 +82,7 @@ export default function LibraryUploadAgentDialog(): React.ReactNode {
|
||||
description: "Agent uploaded successfully",
|
||||
variant: "default",
|
||||
});
|
||||
const qID = "flowID";
|
||||
window.location.href = `/build?${qID}=${response.id}`;
|
||||
window.location.href = `/library/agents/${response.id}`;
|
||||
} catch (error) {
|
||||
form.setError("root", {
|
||||
message: `Could not create agent: ${error}`,
|
||||
|
||||
Reference in New Issue
Block a user