Skip to content

fix(ui): added optional chaining to getContentType to prevent undefin…#6990

Open
SahilJat wants to merge 1 commit intoFlagsmith:mainfrom
SahilJat:fix/content-type-guard
Open

fix(ui): added optional chaining to getContentType to prevent undefin…#6990
SahilJat wants to merge 1 commit intoFlagsmith:mainfrom
SahilJat:fix/content-type-guard

Conversation

@SahilJat
Copy link

…ed crash

Thanks for submitting a PR! Please check the boxes below:

  • [ x ] I have read the Contributing Guide.
  • [ x ] I have added information to docs/ if required so people know about the feature.
  • [ x ] I have filled in the "Changes" section below.
  • I have filled in the "How did you test this code" section below.

Changes

Closes #6881

Please describe.

How did you test this code?

Please describe.

@SahilJat SahilJat requested a review from a team as a code owner March 19, 2026 09:00
@SahilJat SahilJat requested review from talissoncosta and removed request for a team March 19, 2026 09:00
Copy link

@claude claude bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Code review skipped — your organization's overage spend limit has been reached.

Code review is billed via overage credits. To resume reviews, an organization admin can raise the monthly limit in Settings → Usage.

Once credits are available, reopen this pull request to trigger a review.

@vercel
Copy link

vercel bot commented Mar 19, 2026

@SahilJat is attempting to deploy a commit to the Flagsmith Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions bot added the front-end Issue related to the React Front End Dashboard label Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

front-end Issue related to the React Front End Dashboard

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TypeError in Utils.getContentType when contentTypes is undefined

1 participant