Skip to content

Commit c78eb11

Browse files
committed
fix type
1 parent d5bf43f commit c78eb11

File tree

1 file changed

+1
-1
lines changed
  • src/renderer/extensions/rule-editor/components/editor

1 file changed

+1
-1
lines changed

src/renderer/extensions/rule-editor/components/editor/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const Editor = (props: Props) => {
2828
const onSaveRef = useRef(onSave);
2929
onSaveRef.current = onSave;
3030

31-
const containerRef = useRef<HTMLDivElement | undefined>();
31+
const containerRef = useRef<HTMLDivElement | null>(null);
3232

3333
useEffect(() => {
3434
// display a fast button when hover on line

0 commit comments

Comments
 (0)