feat: correct key used when checking unconfirmed list fields
This commit is contained in:
@@ -342,9 +342,10 @@ export const RightSidePanel: React.FC<RightSidePanelProps> = ({ onFinishCapture
|
|||||||
onFinishCapture();
|
onFinishCapture();
|
||||||
}, [getListSettingsObject, socket, notify, handleStopGetList, resetInterpretationLog, finishAction, onFinishCapture, t]);
|
}, [getListSettingsObject, socket, notify, handleStopGetList, resetInterpretationLog, finishAction, onFinishCapture, t]);
|
||||||
|
|
||||||
const hasUnconfirmedListTextFields = browserSteps.some(step =>
|
const hasUnconfirmedListTextFields = browserSteps.some(step =>
|
||||||
step.type === 'list' && Object.values(step.fields).some(field =>
|
step.type === 'list' &&
|
||||||
!confirmedListTextFields[step.id]?.[field.id]
|
Object.entries(step.fields).some(([fieldKey]) =>
|
||||||
|
!confirmedListTextFields[step.id]?.[fieldKey]
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user