[Hotfix]: Adds current user's groups the inspector in the editor (#1875)

* adding groups which lists all the groups the current user belongs in globals [inspector(leftsidebar))]

* adds a check for possibility exists for a missing ref
This commit is contained in:
Arpit 2022-01-20 13:43:27 +05:30 committed by GitHub
parent 888a5d6bf1
commit a2b19934e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -54,6 +54,7 @@ class Editor extends React.Component {
email: currentUser.email,
firstName: currentUser.first_name,
lastName: currentUser.last_name,
groups: currentUser?.group_permissions.map((group) => group.group),
};
}

View file

@ -63,7 +63,7 @@ export const LeftSidebarInspector = ({ darkMode, globals, components, queries })
collapsed={true}
displayObjectSize={false}
quotesOnKeys={false}
sortKeys={true}
sortKeys={false}
// indentWidth={1}
/>
</div>