mirror of
https://github.com/yusufipk/OpenFrame.git
synced 2026-09-12 01:46:08 +00:00
refactor: Update API response handling to access nested data structure
This commit is contained in:
@@ -63,7 +63,7 @@ export default function NewWorkspaceProjectPage({ params }: { params: Promise<{
|
||||
return;
|
||||
}
|
||||
|
||||
router.push(`/projects/${data.id}`);
|
||||
router.push(`/projects/${data.data.id}`);
|
||||
} catch {
|
||||
setError('Something went wrong. Please try again.');
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user