diff --git a/apps/browser/src/autofill/services/collect-autofill-content.service.ts b/apps/browser/src/autofill/services/collect-autofill-content.service.ts index 2cdcbd6702..efacafbe88 100644 --- a/apps/browser/src/autofill/services/collect-autofill-content.service.ts +++ b/apps/browser/src/autofill/services/collect-autofill-content.service.ts @@ -644,6 +644,10 @@ export class CollectAutofillContentService implements CollectAutofillContentServ } const tableDataElementIndex = tableDataElement.cellIndex; + if (tableDataElementIndex < 0) { + return null; + } + const parentSiblingTableRowElement = tableDataElement.closest("tr") ?.previousElementSibling as HTMLTableRowElement;