feat: add check for unconfirmed list text fields

This commit is contained in:
amhsirak
2024-11-04 21:20:58 +05:30
parent 6f064813ea
commit 81e8698291

View File

@@ -383,8 +383,9 @@ export const RightSidePanel: React.FC<RightSidePanelProps> = ({ onFinishCapture
Object.keys(step.fields).length > 0
);
return !hasValidListSelector;
}, [captureStage, browserSteps]);
// Disable the button if there are no valid list selectors or if there are unconfirmed list text fields
return !hasValidListSelector || hasUnconfirmedListTextFields;
}, [captureStage, browserSteps, hasUnconfirmedListTextFields]);
return (
<Paper sx={{ height: '520px', width: 'auto', alignItems: "center", background: 'inherit' }} id="browser-actions" elevation={0}>