Skip to content

Commit

Permalink
Remove references to KEEP_POLICIES_UP_TO_DATE_PACKAGES
Browse files Browse the repository at this point in the history
  • Loading branch information
kpollich committed Oct 13, 2021
1 parent 653b725 commit ea2e805
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ import {
PACKAGE_POLICY_SAVED_OBJECT_TYPE,
AUTO_UPDATE_PACKAGES,
DEFAULT_PACKAGES,
KEEP_POLICIES_UP_TO_DATE_PACKAGES,
} from '../../../../../constants';

import { KeepPoliciesUpToDateSwitch } from '../components';
Expand Down Expand Up @@ -108,10 +107,6 @@ export const SettingsPage: React.FC<Props> = memo(({ packageInfo }: Props) => {
const { notifications } = useStartServices();

const shouldShowKeepPoliciesUpToDateSwitch = useMemo(() => {
if (KEEP_POLICIES_UP_TO_DATE_PACKAGES.some((pkg) => pkg.name === name)) {
return false;
}

const packages = [...DEFAULT_PACKAGES, ...AUTO_UPDATE_PACKAGES];

const packageNames = uniq(packages.map((pkg) => pkg.name));
Expand Down
1 change: 0 additions & 1 deletion x-pack/plugins/fleet/public/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export {
// Preconfiguration
AUTO_UPDATE_PACKAGES,
DEFAULT_PACKAGES,
KEEP_POLICIES_UP_TO_DATE_PACKAGES,
} from '../../common/constants';

export * from './page_paths';
Expand Down

0 comments on commit ea2e805

Please sign in to comment.