Skip to content

Commit e145c11

Browse files
committed
fix: ts error
1 parent b102146 commit e145c11

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/app/src/features/NoteEditor/tests/utils

packages/app/src/features/NoteEditor/tests/utils/utils.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { fireEvent, screen } from '@testing-library/react';
33
const getFirstTextNode = (node: Node): Text | null => {
44
if (node.nodeType === Node.TEXT_NODE) return node as Text;
55

6-
for (const child of node.childNodes) {
6+
for (const child of Array.from(node.childNodes)) {
77
if (child.nodeType === Node.TEXT_NODE) {
88
return child as Text;
99
}

0 commit comments

Comments
 (0)