diff --git a/README.md b/README.md index 6715c56b3..5dfd8b785 100644 --- a/README.md +++ b/README.md @@ -229,6 +229,7 @@ E.g., if it was used in a menu and the menu is red, the circle would be red. --> ## Changelog ### **WORK IN PROGRESS** +* (foxriver76) fix crash when selecting multiple widgets * (foxriver76) removed duplicate `none` entry in `border-style` dropdown ### 2.3.3 (2023-10-30) diff --git a/src/src/Attributes/Widget/WidgetField.jsx b/src/src/Attributes/Widget/WidgetField.jsx index 87d9e7603..61b510893 100644 --- a/src/src/Attributes/Widget/WidgetField.jsx +++ b/src/src/Attributes/Widget/WidgetField.jsx @@ -349,7 +349,7 @@ const WidgetField = props => { } }; - let propValue = props.isStyle ? widget.style[field.name] : widget.data[field.name]; + let propValue = props.isStyle ? widget.style?.[field.name] : widget.data?.[field.name]; if (propValue === undefined) { propValue = null; }