Loading
Guard AiCatalogConfiguredItemsWrapper update callback against null
What does this MR do and why?
Guards the Apollo update callback in AiCatalogConfiguredItemsWrapper against a null aiCatalogConfiguredItems field, which threw a deferred TypeError reported to Sentry as GITLABCOM-CLIENTSIDE-2E5YT.
References
Screenshots or screen recordings
| Before (master) | After (this branch) |
|---|---|
![]() |
![]() |
Console shows TypeError: Cannot read properties of null (reading 'nodes') from the update callback |
Same payload, empty state renders with no console errors |
How to set up and validate locally
- Navigate to any project or group AI Catalog configured items page (e.g.
/-/automate/agents). - Use DevTools request interception (or a local resolver change) to make the
aiCatalogConfiguredItemsquery respond with{ "data": { "aiCatalogConfiguredItems": null } }. - On master, the console shows
TypeError: Cannot read properties of null (reading 'nodes')from theupdatecallback. On this branch, the page renders the empty state with no TypeError.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Angus Ryer

