chore: lint

This commit is contained in:
karishmas6
2024-09-07 22:03:23 +05:30
parent da88618aa9
commit 9c2e42af0b

View File

@@ -208,17 +208,17 @@ export const BrowserWindow = () => {
const attribute = options[0].value; const attribute = options[0].value;
const data = attribute === 'href' ? highlighterData.elementInfo?.url || '' : const data = attribute === 'href' ? highlighterData.elementInfo?.url || '' :
attribute === 'src' ? highlighterData.elementInfo?.imageUrl || '' : attribute === 'src' ? highlighterData.elementInfo?.imageUrl || '' :
highlighterData.elementInfo?.innerText || ''; const newField: TextStep = { highlighterData.elementInfo?.innerText || ''; const newField: TextStep = {
id: Date.now(), id: Date.now(),
type: 'text', type: 'text',
label: `Label ${Object.keys(fields).length + 1}`, label: `Label ${Object.keys(fields).length + 1}`,
data: data, data: data,
selectorObj: { selectorObj: {
selector: highlighterData.selector, selector: highlighterData.selector,
tag: highlighterData.elementInfo?.tagName, tag: highlighterData.elementInfo?.tagName,
attribute attribute
} }
}; };
setFields(prevFields => ({ setFields(prevFields => ({
...prevFields, ...prevFields,