mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-06 06:48:21 +00:00
[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:
parent
888a5d6bf1
commit
a2b19934e8
2 changed files with 2 additions and 1 deletions
|
|
@ -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),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ export const LeftSidebarInspector = ({ darkMode, globals, components, queries })
|
|||
collapsed={true}
|
||||
displayObjectSize={false}
|
||||
quotesOnKeys={false}
|
||||
sortKeys={true}
|
||||
sortKeys={false}
|
||||
// indentWidth={1}
|
||||
/>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue