fix: do not allow empty strings
This commit is contained in:
@@ -222,7 +222,7 @@ export const BrowserWindow = () => {
|
|||||||
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: selectedElement.info?.innerText || '',
|
data: selectedElement.info?.innerText,
|
||||||
selectorObj: {
|
selectorObj: {
|
||||||
selector: selectedElement.selector,
|
selector: selectedElement.selector,
|
||||||
tag: selectedElement.info?.tagName,
|
tag: selectedElement.info?.tagName,
|
||||||
|
|||||||
Reference in New Issue
Block a user