mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-30 03:00:41 -04:00
fix: redirect agent uploads to library instead of builder
- Change upload redirect from /build?flowID=${response.id} to /library
- Keeps users in library context after uploading agents
- Fixes issue where agent uploads were pushing to builder instead of library
Fixes #10290
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`;
|
||||
} catch (error) {
|
||||
form.setError("root", {
|
||||
message: `Could not create agent: ${error}`,
|
||||
|
||||
Reference in New Issue
Block a user