From 6630c41a5f211979a6a0ee096ddace35aab0b966 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Mon, 12 Jun 2023 11:39:48 -0700 Subject: [PATCH] Custom rules multiply on the create detector page after switching log types (#625) (#628) * Custom rules multiply on the Create Detector page after switching Log types #624 Signed-off-by: Jovan Cvetkovic * Custom rules multiply on the Create Detector page after switching Log types #624 Signed-off-by: Jovan Cvetkovic --------- Signed-off-by: Jovan Cvetkovic (cherry picked from commit db0354ef9d92f11bba091dddb1ca1a3d20468995) Co-authored-by: Jovan Cvetkovic --- .../components/DetectionRules/DetectionRulesTable.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/pages/CreateDetector/components/DefineDetector/components/DetectionRules/DetectionRulesTable.tsx b/public/pages/CreateDetector/components/DefineDetector/components/DetectionRules/DetectionRulesTable.tsx index ab68f72f9..6412644a4 100644 --- a/public/pages/CreateDetector/components/DefineDetector/components/DetectionRules/DetectionRulesTable.tsx +++ b/public/pages/CreateDetector/components/DefineDetector/components/DetectionRules/DetectionRulesTable.tsx @@ -82,7 +82,7 @@ export const DetectionRulesTable: React.FC = ({ onRuleDetails )} items={ruleItems} - itemId={(item: RuleItem) => `${item.name}`} + itemId={(item: RuleItem) => `${item.id}`} search={search} pagination={pagination} onTableChange={onTableChangeHandler}