fix: ensure quick add functionality correctly awaits promise resolution and streamline role tracking in workspace creation

This commit is contained in:
Jayash Tripathy
2025-12-22 15:10:31 +05:30
parent 889c173b99
commit b4c40bb928
@@ -106,7 +106,6 @@ export const CreateProjectForm = observer(function CreateProjectForm(props: TCre
if (currentUser && currentWorkspace && res) {
const role = getWorkspaceRoleByWorkspaceSlug(currentWorkspace.slug);
trackProjectCreated({ id: res.id, created_at: res.created_at ?? "" }, currentWorkspace, currentUser, role);
trackProjectCreated({ id: res.id, created_at: res.created_at ?? "" }, currentWorkspace, currentUser, role);
}
setToast({
type: TOAST_TYPE.SUCCESS,