Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid TypeError in PageLayout checking document.body #5552

Merged
merged 3 commits into from
Jan 16, 2025

Conversation

camertron
Copy link
Contributor

@camertron camertron commented Jan 15, 2025

Closes https://github.com/github/primer/issues/4634

Changelog

New

Changed

  1. Fixes an issue in PageLayout.tsx causing a TypeError in production. Apparently document.body can be null.

Removed

Rollout strategy

  • Patch release
  • Minor release
  • Major release; if selected, include a written rollout or migration plan
  • None; if selected, include a brief description as to why

Testing & Reviewing

Merge checklist

- [ ] Added/updated tests
- [ ] Added/updated documentation
- [ ] Added/updated previews (Storybook)

@camertron camertron requested a review from a team as a code owner January 15, 2025 22:57
@camertron camertron requested a review from mperrotti January 15, 2025 22:57
@github-actions github-actions bot added the integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm label Jan 15, 2025
Copy link
Contributor

👋 Hi, this pull request contains changes to the source code that github/github depends on. If you are GitHub staff, we recommend testing these changes with github/github using the integration workflow. Thanks!

@github-actions github-actions bot temporarily deployed to storybook-preview-5552 January 15, 2025 22:59 Inactive
@camertron camertron force-pushed the page_layout_check_body_null branch from bdfba9c to c01d5c8 Compare January 15, 2025 23:00
Copy link

changeset-bot bot commented Jan 15, 2025

🦋 Changeset detected

Latest commit: 5b8f1e0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

github-actions bot commented Jan 15, 2025

size-limit report 📦

Path Size
packages/react/dist/browser.esm.js 104.19 KB (+0.01% 🔺)
packages/react/dist/browser.umd.js 104.56 KB (+0.05% 🔺)

@github-actions github-actions bot temporarily deployed to storybook-preview-5552 January 15, 2025 23:02 Inactive
@camertron camertron changed the title Avoid TypeError in PageLayout checking document.body Avoid TypeError in PageLayout checking document.body Jan 15, 2025
@github-actions github-actions bot added integration-tests: failing Changes in this PR cause breaking changes in gh/gh and removed integration-tests: recommended This change needs to be tested for breaking changes. See https://arc.net/l/quote/tdmpakpm labels Jan 15, 2025
@camertron camertron requested review from francinelucca and removed request for mperrotti January 16, 2025 18:58
@github-actions github-actions bot temporarily deployed to storybook-preview-5552 January 16, 2025 22:20 Inactive
@primer-integration
Copy link

👋 Hi from github/github! Your integration PR is ready: https://github.com/github/github/pull/358254

@primer-integration
Copy link

🔴 golden-jobs completed with status failure.

@camertron camertron added this pull request to the merge queue Jan 16, 2025
Merged via the queue into main with commit c87e80c Jan 16, 2025
41 of 42 checks passed
@camertron camertron deleted the page_layout_check_body_null branch January 16, 2025 23:21
@primer primer bot mentioned this pull request Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration-tests: failing Changes in this PR cause breaking changes in gh/gh
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants