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)
07-before-master-typeerror-with-console 08-after-branch-no-typeerror-with-console
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

  1. Navigate to any project or group AI Catalog configured items page (e.g. /-/automate/agents).
  2. Use DevTools request interception (or a local resolver change) to make the aiCatalogConfiguredItems query respond with { "data": { "aiCatalogConfiguredItems": null } }.
  3. On master, the console shows TypeError: Cannot read properties of null (reading 'nodes') from the update callback. 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

Merge request reports

Loading
Loading