Skip to content

Commit ef2450d

Browse files
authored
fix: prevent WSOD in preview pane (#97)
1 parent 201e233 commit ef2450d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Preview.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function Preview() {
2929
const htmlRoot = useRef();
3030

3131
const { suggestion } = getQueryAdvise({
32-
rootNode: htmlRoot,
32+
rootNode: htmlRoot?.current,
3333
element: highlighted,
3434
});
3535

0 commit comments

Comments
 (0)