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

Fix rendering if ConditionalLink has no children #5963

Merged
merged 2 commits into from
Apr 17, 2024

Conversation

pnicolli
Copy link
Contributor

If no children are given, this rendered undefined causing the site to break.

@pnicolli pnicolli requested a review from sneridagh April 17, 2024 14:08
Copy link

netlify bot commented Apr 17, 2024

Deploy Preview for plone-components canceled.

Name Link
🔨 Latest commit 097240d
🔍 Latest deploy log https://app.netlify.com/sites/plone-components/deploys/661fd808c48f780009e1a072

Copy link

netlify bot commented Apr 17, 2024

Deploy Preview for volto canceled.

Name Link
🔨 Latest commit 097240d
🔍 Latest deploy log https://app.netlify.com/sites/volto/deploys/661fd808c2343b00085b8aa4

@davisagli davisagli merged commit c664f33 into main Apr 17, 2024
73 checks passed
@davisagli davisagli deleted the empty_conditional_link branch April 17, 2024 17:07
sneridagh added a commit that referenced this pull request Apr 29, 2024
* main: (49 commits)
  Update to Plone 6.0.11 (#5989)
  Defines the last 4 parameters of the `asyncConnect` function with optional (#5986)
  Flexibilize the pins for all ESlint deps, in Volto and generators (#5991)
  Release 18.0.0-alpha.29
  Release @plone/types 1.0.0-alpha.11
  fix: pass down locale to IntlProvider (#5976)
  Add Vite (client only, no SSR) build. Update Next.js 14.2.2 and Remix to 2.8.0 (#5970)
  Fix no router link in logo (#5981)
  Improve postinstall script, building all the deps (#5980)
  Better BlocksData types (#5979)
  Add missing types ts fields
  Release 18.0.0-alpha.28
  Release @plone/slate 18.0.0-alpha.12
  Release @plone/registry 1.5.6
  Improvements to the monorepo setup with utilities, especially ESLint.… (#5969)
  DEV: put nvm installation section into a separate include file (#5968)
  Bundle optimization (#5295)
  [client] Move provider to own package - Use parcel - `@plone/providers` (#5887)
  Fix flaky test 'As editor I can add links' by using getSlateEditorAndType (#5966)
  Fix rendering if ConditionalLink has no children (#5963)
  ...
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