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:
@@ -38,7 +38,7 @@ export default function NewWorkspacePage() {
|
||||
return;
|
||||
}
|
||||
|
||||
router.push(`/workspaces/${data.id}`);
|
||||
router.push(`/workspaces/${data.data.id}`);
|
||||
} catch {
|
||||
setError('Something went wrong. Please try again.');
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user