Skip to content

Commit

Permalink
fixed issue, that old attributes value is shown in some scenarios (#310)
Browse files Browse the repository at this point in the history
- closes #306
  • Loading branch information
foxriver76 authored Jan 15, 2024
1 parent 68e8873 commit b9205d5
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 @@ -258,6 +258,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 issue, that old attributes value is shown in some scenarios
* (foxriver76) dedicated permission system extended to view level

### 2.9.17 (2024-01-13)
Expand Down
4 changes: 2 additions & 2 deletions src/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1072,6 +1072,8 @@ class App extends Runtime {
debugger;
}

store.dispatch(recalculateFields(true));

if (selectedView) {
window.localStorage.setItem(`${this.state.projectName}.${selectedView}.widgets`, JSON.stringify(selectedWidgets));
// changeView reads selected widgets from localStorage
Expand All @@ -1086,8 +1088,6 @@ class App extends Runtime {
alignValues: [],
});
}

store.dispatch(recalculateFields(true));
};

toggleCode = () => {
Expand Down

0 comments on commit b9205d5

Please sign in to comment.