From 062235afe25bce944fdde404778c3f64f1bb5381 Mon Sep 17 00:00:00 2001 From: sadakchap Date: Mon, 6 Sep 2021 21:15:51 +0530 Subject: [PATCH 1/2] update CLP for new class --- src/lib/stores/SchemaStore.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/stores/SchemaStore.js b/src/lib/stores/SchemaStore.js index 6e433fcfe7..2faf186dd5 100644 --- a/src/lib/stores/SchemaStore.js +++ b/src/lib/stores/SchemaStore.js @@ -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( From 6747ab158280193aa9a9c2a3e70f9c231d923540 Mon Sep 17 00:00:00 2001 From: sadakchap Date: Mon, 6 Sep 2021 21:20:54 +0530 Subject: [PATCH 2/2] update changelog.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c03c791652..6a20f1f373 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,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)