Skip to content

Commit 7686c70

Browse files
sadakchapmtrezza
andauthored
Fix: Update CLP for new class (#1785)
* update CLP for new class * update changelog.md Co-authored-by: Manuel <[email protected]>
1 parent 29a4b48 commit 7686c70

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
- fix: date cell value not selected on double clicks (fn-faisal) [#1730](https://github.com/parse-community/parse-dashboard/pull/1730)
1414

1515
## Fixes
16+
- 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)
1617
- 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)
1718
- Fixed UI for a field containing an array of pointers (Prerna Mehra) [#1776](https://github.com/parse-community/parse-dashboard/pull/1776)
1819
- 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)

src/lib/stores/SchemaStore.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ function SchemaStore(state, action) {
5555
'schemas/' + action.className,
5656
{ className: action.className },
5757
{ useMasterKey: true }
58-
).then(({ fields }) => {
58+
).then(({ fields, classLevelPermissions }) => {
5959
return state
6060
.setIn(['classes', action.className], Map(fields))
61-
.setIn(['CLPs', action.className], Map({}));
61+
.setIn(['CLPs', action.className], Map(classLevelPermissions));
6262
});
6363
case ActionTypes.DROP_CLASS:
6464
return action.app.apiRequest(

0 commit comments

Comments
 (0)