From a49353386d7105198590e55272dec9af8e70bf82 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Sat, 21 Sep 2024 17:37:52 +0530 Subject: [PATCH] feat: throw error if unconfirmed list text fields --- src/components/organisms/RightSidePanel.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/organisms/RightSidePanel.tsx b/src/components/organisms/RightSidePanel.tsx index e34e3571..026296d9 100644 --- a/src/components/organisms/RightSidePanel.tsx +++ b/src/components/organisms/RightSidePanel.tsx @@ -194,6 +194,11 @@ export const RightSidePanel: React.FC = ({ onFinishCapture startPaginationMode(); setShowPaginationOptions(true); setCaptureStage('pagination'); + const hasUnconfirmedListTextFields = browserSteps.some(step => step.type === 'list' && Object.values(step.fields).some(field => !confirmedListTextFields[step.id]?.[field.id])); + if (hasUnconfirmedListTextFields) { + notify('error', 'Please confirm all field labels.'); + return; + } break; case 'pagination':