Commit 825a786
fix(aci): Restore project-not-found guard in edit.tsx
The !project guard was removed from edit.tsx causing useDetectorFormProject()
to throw when a detector's project is missing or inaccessible. This error
propagates uncaught since the ErrorBoundary in FormSection is too low in
the component tree to catch errors from parent components like AutomateSection
and *IssuePreview components that call useDetectorFormProject() in their body.
Re-adding the guard ensures a friendly 'Project not found' error is shown
instead of crashing the entire page.
Co-authored-by: Armen Zambrano G. <armenzg@users.noreply.github.com>1 parent 15d15c8 commit 825a786
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
37 | 42 | | |
38 | 43 | | |
39 | 44 | | |
| |||
0 commit comments