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

Crash when clicking on the More toolbar menu, when context has a layout view that's not declared in Volto #5802

Open
tiberiuichim opened this issue Feb 26, 2024 · 2 comments

Comments

@tiberiuichim
Copy link
Contributor

this.props.intl.formatMessage({
id: config.views.layoutViewsNamesMapping?.[this.props.layout],
defaultMessage:
config.views.layoutViewsNamesMapping?.[this.props.layout],
}) || this.props.layout,

react-intl doesn't like to format a message with {id: null}

@anmolchhabra21
Copy link

Hi @tiberiuichim, let me check this.

@tiberiuichim
Copy link
Contributor Author

@anmolchhabra21 sure, here's a fixed version. https://github.com/eea/volto-cca-policy/blob/08d05ef766e5f682727ba74db2cb7b870229dc93/src/customizations/volto/components/manage/Display/Display.jsx

Make sure to follow the Plone Development process, I think it's a bit tricky for developers that are not "regulars" to this repo.

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

No branches or pull requests

2 participants