Commit e737cf4
fix(notifications): Handle null provider in organization integrations filter (#112368)
Handle null provider in the organization integrations filter on the
notification settings page.
The `/users/me/organization-integrations/` API can return entries with a
null `provider` field. The `ALLOWED_PROVIDERS` filter added in #111745
accesses `orgIntegration.provider.key` without null safety, crashing the
page with `TypeError: Cannot read properties of null (reading
'provider')`.
Adds optional chaining to match the pattern already used for the
identity
provider filter a few lines above.
handles JAVASCRIPT-38j8 & JAVASCRIPT-38N4
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent b11e3d3 commit e737cf4
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