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