From 8ab87251978bf6b1a3be73bf0cd08b39aeefc86e Mon Sep 17 00:00:00 2001 From: josephalexantony-aot Date: Tue, 10 Dec 2024 05:23:15 -0800 Subject: [PATCH] FWF-3971:[Feature] - Import type issue fix in form listing page. --- forms-flow-web/src/components/Form/List.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/forms-flow-web/src/components/Form/List.js b/forms-flow-web/src/components/Form/List.js index 5698dbd1e..74a622aff 100644 --- a/forms-flow-web/src/components/Form/List.js +++ b/forms-flow-web/src/components/Form/List.js @@ -173,9 +173,9 @@ const List = React.memo((props) => { let data; - if(UploadActionType[actionType]){ - data = { importType: "new", action: UploadActionType[actionType?.toUpperCase()]}; - }else{ + if ([UploadActionType.VALIDATE, UploadActionType.IMPORT].includes(actionType)) { + data = { importType: "new", action: actionType }; + } else { console.error("Invalid UploadActionType provided"); return; }