fix(frontend): access correct data property for redirection
swadhinbiswas committed 9 months ago
1113586
1 parent 3373cc3
commit 1113586
1 file changed
+1 -1
Showing 1 changed file+1-1
▼src/pages/new.astro
+1-1
| @@ -311,7 +311,7 @@ if (!user) { | ||
311 | 311 | } |
312 | 312 | |
313 | 313 | // Redirect to the new repository |
314 | - window.location.href = `/${result.fullName}`; | |
314 | + window.location.href = `/${result.data.fullName}`; | |
315 | 315 | } catch (error) { |
316 | 316 | console.error("Error creating repository:", error); |
317 | 317 | |
318 | 318 | |