Commit cf686aa
fix(notifications): Fix types for nullable organization integrations
Update the useApiQuery type parameter to Array<OrganizationIntegration | null>
to reflect that entries can be null. Add a type guard on the filter so
downstream code retains the narrowed OrganizationIntegration type.
Remove unnecessary optional chaining on provider.key since a non-null
integration should always have a provider.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 0a5a5f8 commit cf686aa
File tree
1 file changed
+4
-3
lines changed- static/app/views/settings/account/notifications
1 file changed
+4
-3
lines changedLines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
106 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
| |||
0 commit comments