Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7614e3 commit 3fcb55dCopy full SHA for 3fcb55d
site/src/components/UsersTable/UsersTableBody.tsx
@@ -77,6 +77,8 @@ export const UsersTableBody: FC<
77
78
const permissions = usePermissions()
79
const canViewDeployment = Boolean(permissions.viewDeploymentValues)
80
+ // Ideally this only runs if 'canViewDeployment' is true.
81
+ // TODO: Prevent api call if the user does not have the perms.
82
const [state] = useMachine(deploymentConfigMachine)
83
const { deploymentValues } = state.context
84
0 commit comments