Skip to content

TopicsMobileHeader crashes when topic is null聽#15366

Description

@rtibbles

馃檪 Looking for an issue? Welcome! This issue is open for contribution. If this is the first time you鈥檙e requesting an issue, please:

  • Read Contributing guidelines carefully. Pay extra attention to Using generative AI. Pull requests and comments that don鈥檛 follow the guidelines won鈥檛 be answered.
  • Confirm that you鈥檝e read the guidelines in your comment.

Overview

On small screens, TopicsPage renders TopicsMobileHeader before topic has loaded, and the header's render throws a TypeError on topic.title.

Complexity: Low
Target branch: develop

Context

Production, 90 days to 2026-09-24:

Sentry issue Events Sites
KOLIBRI-FRONTEND-140J 9 2
TypeError: null is not an object (evaluating 'this.topic.title')

The Change

  • TopicsMobileHeader should handle a null topic the way TopicsHeader does, until the topic loads.

Acceptance Criteria

  • TopicsMobileHeader renders without error when topic is null.
  • Once topic loads, the header shows its title and thumbnail as it does today.
  • A Jest test renders TopicsMobileHeader with topic: null.

AI usage

I picked this from a Sentry triage with Claude Code. Claude Code queried Sentry, traced the code and drafted the sections.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions