Skip to content

Commit

Permalink
Fix: Update CLP for new class (#1785)
Browse files Browse the repository at this point in the history
* update CLP for new class

* update changelog.md

Co-authored-by: Manuel <5673677+mtrezza@users.noreply.github.com>
  • Loading branch information
sadakchap and mtrezza committed Sep 7, 2021
1 parent 29a4b48 commit 7686c70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
- fix: date cell value not selected on double clicks (fn-faisal) [#1730](https://github.com/parse-community/parse-dashboard/pull/1730)

## Fixes
- Fixed bug after creating new class, wrong CLP was shown for that class [#1784](https://github.com/parse-community/parse-dashboard/issues/1784) (Prerna Mehra) [#1785](https://github.com/parse-community/parse-dashboard/pull/1785)
- Fixed bug when opening a big modal, modal content is not visible due to Sidebar (Prerna Mehra) [#1777](https://github.com/parse-community/parse-dashboard/pull/1778)
- Fixed UI for a field containing an array of pointers (Prerna Mehra) [#1776](https://github.com/parse-community/parse-dashboard/pull/1776)
- Fixed bug when editing or copying a field containing an array of pointers [#1770](https://github.com/parse-community/parse-dashboard/issues/1770) (Prerna Mehra) [#1771](https://github.com/parse-community/parse-dashboard/pull/1771)
Expand Down
4 changes: 2 additions & 2 deletions src/lib/stores/SchemaStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ function SchemaStore(state, action) {
'schemas/' + action.className,
{ className: action.className },
{ useMasterKey: true }
).then(({ fields }) => {
).then(({ fields, classLevelPermissions }) => {
return state
.setIn(['classes', action.className], Map(fields))
.setIn(['CLPs', action.className], Map({}));
.setIn(['CLPs', action.className], Map(classLevelPermissions));
});
case ActionTypes.DROP_CLASS:
return action.app.apiRequest(
Expand Down

0 comments on commit 7686c70

Please sign in to comment.