chore: lint
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user