chore: lint
This commit is contained in:
@@ -83,11 +83,11 @@ export const RightSidePanel = () => {
|
|||||||
|
|
||||||
|
|
||||||
const getListSettingsObject = useCallback(() => {
|
const getListSettingsObject = useCallback(() => {
|
||||||
const settings: Record<string, { listSelector: string; fields: Record<string, { selector: string; tag?: string; [key: string]: any }> }> = {};
|
const settings: Record<string, { listSelector: string; fields: Record<string, { selector: string; tag?: string;[key: string]: any }> }> = {};
|
||||||
|
|
||||||
browserSteps.forEach(step => {
|
browserSteps.forEach(step => {
|
||||||
if (step.type === 'list' && step.listSelector && Object.keys(step.fields).length > 0) {
|
if (step.type === 'list' && step.listSelector && Object.keys(step.fields).length > 0) {
|
||||||
const fields: Record<string, { selector: string; tag?: string; [key: string]: any }> = {};
|
const fields: Record<string, { selector: string; tag?: string;[key: string]: any }> = {};
|
||||||
Object.entries(step.fields).forEach(([label, field]) => {
|
Object.entries(step.fields).forEach(([label, field]) => {
|
||||||
if (field.selectorObj?.selector) {
|
if (field.selectorObj?.selector) {
|
||||||
fields[label] = {
|
fields[label] = {
|
||||||
@@ -108,7 +108,7 @@ export const RightSidePanel = () => {
|
|||||||
console.log(`Setting LIST:`, settings)
|
console.log(`Setting LIST:`, settings)
|
||||||
|
|
||||||
return settings;
|
return settings;
|
||||||
}, [browserSteps]);
|
}, [browserSteps]);
|
||||||
|
|
||||||
|
|
||||||
const stopCaptureAndEmitGetListSettings = useCallback(() => {
|
const stopCaptureAndEmitGetListSettings = useCallback(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user