From e89599b4c3aa64520f70f38ce534990adbd58f07 Mon Sep 17 00:00:00 2001 From: Alison Goryachev Date: Mon, 29 Jun 2020 11:23:14 -0400 Subject: [PATCH] address review feedback --- .../public/application/store/selectors/policies.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/x-pack/plugins/index_lifecycle_management/public/application/store/selectors/policies.js b/x-pack/plugins/index_lifecycle_management/public/application/store/selectors/policies.js index f0a8e4d81ebe3..5bea22f0b3a76 100644 --- a/x-pack/plugins/index_lifecycle_management/public/application/store/selectors/policies.js +++ b/x-pack/plugins/index_lifecycle_management/public/application/store/selectors/policies.js @@ -195,11 +195,7 @@ const phaseFromES = (phase, phaseName, defaultEmptyPolicy) => { if (actions.set_priority) { const { priority } = actions.set_priority; - if (priority) { - policy[PHASE_INDEX_PRIORITY] = priority; - } else { - policy[PHASE_INDEX_PRIORITY] = ''; - } + policy[PHASE_INDEX_PRIORITY] = priority ?? ''; } if (actions.wait_for_snapshot) {