From 21cb1cc580a2044cedc9a4818b5da66d66874236 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Tue, 10 Jan 2023 15:16:23 -0800 Subject: [PATCH] Wait for field mapping creation to succeed before detector creation API call (#317) (#327) * create detector if mapping creation succeeds Signed-off-by: Amardeepsingh Siglani * updated creation api call sequence Signed-off-by: Amardeepsingh Siglani Signed-off-by: Amardeepsingh Siglani (cherry picked from commit 750759423b8be293d7a03985f8bd0de4ad87ac17) Co-authored-by: Amardeepsingh Siglani Signed-off-by: AWSHurneyt --- .../containers/CreateDetector.tsx | 36 ++++++++++--------- public/utils/validation.ts | 2 +- 2 files changed, 20 insertions(+), 18 deletions(-) diff --git a/public/pages/CreateDetector/containers/CreateDetector.tsx b/public/pages/CreateDetector/containers/CreateDetector.tsx index 146165ffd..f3e49d939 100644 --- a/public/pages/CreateDetector/containers/CreateDetector.tsx +++ b/public/pages/CreateDetector/containers/CreateDetector.tsx @@ -116,26 +116,28 @@ export default class CreateDetector extends Component