Skip to content

Commit

Permalink
Simplify condition
Browse files Browse the repository at this point in the history
  • Loading branch information
jen-huang committed Jun 9, 2021
1 parent 60ef874 commit a179cf5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const StepConfigurePackagePolicy: React.FunctionComponent<{
showOnlyIntegration
? (packageInfo.policy_templates || []).filter(
(policyTemplate) => policyTemplate.name === showOnlyIntegration
) || []
)
: packageInfo.policy_templates || [],
[packageInfo.policy_templates, showOnlyIntegration]
);
Expand Down

0 comments on commit a179cf5

Please sign in to comment.