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

Don't assign an undefined document title #251

Merged
merged 1 commit into from
Dec 5, 2024
Merged

Conversation

kylegach
Copy link
Collaborator

@kylegach kylegach commented Dec 5, 2024

  • That unexpectedly overrides the parent title
  • Instead, either provide an explicit fallback or conditionally spread the property (implicit undefined works as expected)
  • Also, not all addons have a displayName; fallback to name
    • Do same for tags and recipes, protectively

- That unexpectedly overrides the parent title
- Instead, either provide an explicit fallback or conditionally spread the property (implicit undefined works as expected)
- Also, not all addons have a `displayName`; fallback to `name`
    - Do same for tags and recipes, protectively
Copy link

netlify bot commented Dec 5, 2024

Deploy Preview for storybook-addon-catalog ready!

Name Link
🔨 Latest commit a7f91fe
🔍 Latest deploy log https://app.netlify.com/sites/storybook-addon-catalog/deploys/6751eaa3e657880007c785ef
😎 Deploy Preview https://deploy-preview-251--storybook-addon-catalog.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Dec 5, 2024

Deploy Preview for storybook-frontpage ready!

Name Link
🔨 Latest commit a7f91fe
🔍 Latest deploy log https://app.netlify.com/sites/storybook-frontpage/deploys/6751eaa30f7d1300080660e6
😎 Deploy Preview https://deploy-preview-251--storybook-frontpage.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@winkerVSbecks
Copy link
Contributor

@kylegach not required for this PR but maybe write some unit tests for generateMetadata so that this logic is documented.

@kylegach kylegach closed this Dec 5, 2024
@kylegach kylegach reopened this Dec 5, 2024
@kylegach kylegach merged commit 291c201 into main Dec 5, 2024
13 checks passed
@kylegach kylegach deleted the fix-document-titles-2 branch December 5, 2024 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants