From b85b7abc2c5bb9944fe14d5b186fad5a27deefdc Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Thu, 16 Feb 2023 12:21:58 -0500 Subject: [PATCH] [8.7] Render the correct form when edit extraction rules (#151304) (#151480) # Backport This will backport the following commits from `main` to `8.7`: - [Render the correct form when edit extraction rules (#151304)](https://github.com/elastic/kibana/pull/151304) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) Co-authored-by: Dmitriy Burlutskiy --- .../extraction_rules/extraction_rules_logic.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/crawler/crawler_domain_detail/extraction_rules/extraction_rules_logic.tsx b/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/crawler/crawler_domain_detail/extraction_rules/extraction_rules_logic.tsx index f44d83cb7c99df..8c56f4c4d5f199 100644 --- a/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/crawler/crawler_domain_detail/extraction_rules/extraction_rules_logic.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/crawler/crawler_domain_detail/extraction_rules/extraction_rules_logic.tsx @@ -250,6 +250,7 @@ export const ExtractionRulesLogic = kea< cancelEditExtractionRule: () => null, editExtractionRule: (_, { extractionRule }) => extractionRule, updateSuccess: () => null, + updateExtractionRuleSuccess: () => null, }, ], extractionRuleToEditIsNew: [ @@ -257,6 +258,8 @@ export const ExtractionRulesLogic = kea< { addSuccess: () => false, editNewExtractionRule: () => true, + editExtractionRule: () => false, + updateExtractionRuleSuccess: () => false, }, ], fieldRuleFlyoutVisible: [