Skip to content
Snippets Groups Projects
Unverified Commit b460b29f authored by Sloan Sparger's avatar Sloan Sparger Committed by GitHub
Browse files

fixes db perms error when permissionEditor is null (#41900)

parent 54aa2147
No related branches found
No related tags found
No related merge requests found
......@@ -127,7 +127,7 @@ function DatabasesPermissionsPage({
const showLegacyNoSelfServiceWarning =
PLUGIN_ADVANCED_PERMISSIONS.shouldShowViewDataColumn &&
permissionEditor.hasLegacyNoSelfServiceValueInPermissionGraph;
!!permissionEditor?.hasLegacyNoSelfServiceValueInPermissionGraph;
return (
<Fragment>
......
......@@ -146,6 +146,7 @@ function GroupsPermissionsPage({
const showLegacyNoSelfServiceWarning =
PLUGIN_ADVANCED_PERMISSIONS.shouldShowViewDataColumn &&
!!permissionEditor?.hasLegacyNoSelfServiceValueInPermissionGraph;
return (
<Fragment>
<PermissionsSidebar
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment