mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
Preparing the repository
This commit is contained in:
@@ -73,14 +73,13 @@ export const ProjectForm = (props: projectFormProps) => {
|
||||
organizationId: props.organization.id,
|
||||
projectId: props.projectId
|
||||
});
|
||||
console.log(project)
|
||||
|
||||
if (project.data.success) {
|
||||
if (project.data?.success) {
|
||||
toast.success(project.data.actionSuccess.message);
|
||||
router.push(`/dashboard/${props.organization.slug}/projects/${project.data.value.id}`);
|
||||
router.refresh()
|
||||
router.refresh();
|
||||
} else {
|
||||
toast.success(project.data.actionError.message);
|
||||
toast.error(project.data.actionError.message || "Unknown error occurred.");
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user