()
| 106 | }); |
| 107 | |
| 108 | async function createProject() { |
| 109 | if (!projectName?.trim()) { |
| 110 | toast({ title: '❌ Invalid Input', description: 'Project name cannot be empty' }); |
| 111 | return; |
| 112 | } |
| 113 | if (!selectedOrgId) { |
| 114 | toast({ title: '❌ Invalid Input', description: 'Please select an organization' }); |
| 115 | return; |
| 116 | } |
| 117 | |
| 118 | createProjectMutation.mutate({ org_id: selectedOrgId, name: projectName.trim() }); |
| 119 | } |
| 120 | |
| 121 | async function updateProjectInfo() { |
| 122 | if (!projectName?.trim()) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…