From 57b899310c8cebf6c41dfd1d74ac079a13504857 Mon Sep 17 00:00:00 2001 From: Candace Park Date: Mon, 19 Oct 2020 16:21:01 -0400 Subject: [PATCH] migration works for sure now --- .../common/endpoint/policy/migrations/to_v7_11.0.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/security_solution/common/endpoint/policy/migrations/to_v7_11.0.ts b/x-pack/plugins/security_solution/common/endpoint/policy/migrations/to_v7_11.0.ts index ec34c4e968cd0..8c2dabae21bbd 100644 --- a/x-pack/plugins/security_solution/common/endpoint/policy/migrations/to_v7_11.0.ts +++ b/x-pack/plugins/security_solution/common/endpoint/policy/migrations/to_v7_11.0.ts @@ -14,7 +14,7 @@ export const migratePackagePolicyToV7110: SavedObjectMigrationFn = cloneDeep( packagePolicyDoc ); - if (packagePolicyDoc.attributes.name === 'endpoint') { + if (packagePolicyDoc.attributes.package?.name === 'endpoint') { const input = updatedPackagePolicyDoc.attributes.inputs[0]; const popup = { malware: {