From 7e61fada1b0d03d1a66a003b519ce4113180647e Mon Sep 17 00:00:00 2001 From: Maxim Palenov Date: Tue, 10 Sep 2024 15:51:40 +0200 Subject: [PATCH] fix improper id usage --- .../use_prebuilt_rules_upgrade_state.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/security_solution/public/detection_engine/rule_management_ui/components/rules_table/upgrade_prebuilt_rules_table/use_prebuilt_rules_upgrade_state.ts b/x-pack/plugins/security_solution/public/detection_engine/rule_management_ui/components/rules_table/upgrade_prebuilt_rules_table/use_prebuilt_rules_upgrade_state.ts index 7342f3e4bdc27..86f2293d312fa 100644 --- a/x-pack/plugins/security_solution/public/detection_engine/rule_management_ui/components/rules_table/upgrade_prebuilt_rules_table/use_prebuilt_rules_upgrade_state.ts +++ b/x-pack/plugins/security_solution/public/detection_engine/rule_management_ui/components/rules_table/upgrade_prebuilt_rules_table/use_prebuilt_rules_upgrade_state.ts @@ -65,12 +65,12 @@ export function usePrebuiltRulesUpgradeState( ...ruleUpgradeInfo, finalRule: calcFinalDiffableRule( ruleUpgradeInfo, - rulesResolvedConflicts[ruleUpgradeInfo.id] ?? {} + rulesResolvedConflicts[ruleUpgradeInfo.rule_id] ?? {} ), hasUnresolvedConflicts: getUnacceptedConflictsCount( ruleUpgradeInfo.diff.fields, - rulesResolvedConflicts[ruleUpgradeInfo.id] ?? {} + rulesResolvedConflicts[ruleUpgradeInfo.rule_id] ?? {} ) > 0, }; }