Skip to content

Commit

Permalink
do not crash when using visibility 'only for groups'
Browse files Browse the repository at this point in the history
- closes #341
  • Loading branch information
foxriver76 committed Jan 29, 2024
1 parent 5d4d456 commit c477f1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,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) fixed resizing issue for relative widgets
* (foxriver76) do not crash when using visibility "only for groups"

### 2.9.24 (2024-01-24)
* (foxriver76) Image 8 widget ported to react
Expand Down
4 changes: 2 additions & 2 deletions src/src/Attributes/Widget/WidgetField.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,9 @@ const WidgetField = props => {
let onChangeTimeout;

const applyValue = newValues => {
const project = JSON.parse(JSON.stringify(store.getState().visProject));
const project = deepClone(store.getState().visProject);
props.selectedWidgets.forEach((selectedWidget, i) => {
const value = Array.isArray(newValues) ? newValues[i] : newValues;
const value = Array.isArray(newValues) && field.type !== 'groups' ? newValues[i] : newValues;

const data = props.isStyle
? project[props.selectedView].widgets[selectedWidget].style
Expand Down

0 comments on commit c477f1a

Please sign in to comment.