Skip to content

Commit

Permalink
fix after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
mgunnerud committed Dec 11, 2024
1 parent 5aaa3d1 commit cde8d18
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { getNewRuleId } from '../../../utils';
import { usePolicyEditorContext } from '../../../contexts/PolicyEditorContext';
import { ObjectUtils } from '@studio/pure-functions';
import { PolicyAccessPackages } from './PolicyAccessPackages';
import { shouldDisplayFeature } from 'app-shared/utils/featureToggleUtils';
import { FeatureFlag, shouldDisplayFeature } from 'app-shared/utils/featureToggleUtils';

export type PolicyRuleProps = {
policyRule: PolicyRuleCard;
Expand Down Expand Up @@ -85,7 +85,7 @@ export const PolicyRule = ({
<SubResources />
<PolicyActions />
<PolicySubjects />
{shouldDisplayFeature('accessPackages') && <PolicyAccessPackages />}
{shouldDisplayFeature(FeatureFlag.AccessPackages) && <PolicyAccessPackages />}
<PolicyDescription />
</ExpandablePolicyElement>
{showErrors && <PolicyRuleErrorMessage />}
Expand Down

0 comments on commit cde8d18

Please sign in to comment.