Skip to content

Commit

Permalink
Fix broken call to getWidgetPropsFromTaggedValues
Browse files Browse the repository at this point in the history
This caused the object_browser widget loosing the mode and return props which got the default "multiple", "multiple" values even when "image", "single" was desired. As a consequence this broke the preview images.
  • Loading branch information
reebalazs committed Nov 27, 2024
1 parent 57d3017 commit a6d1466
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/volto/src/components/manage/Form/Field.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ const UnconnectedField = (props, { intl }) => {
// Adding the widget props from tagged values (if any)
const widgetProps = {
...props,
...getWidgetPropsFromTaggedValues(props.widgetOptions),
...getWidgetPropsFromTaggedValues(widgets, props.widgetOptions),
};

if (props.onOrder) {
Expand Down

0 comments on commit a6d1466

Please sign in to comment.