fix: use optional chaining to fix lint errors (#1485)
This commit is contained in:
parent
146b3cb8cf
commit
d25b71c0a1
3 changed files with 3 additions and 3 deletions
|
|
@ -30,7 +30,7 @@ export const handleTransaction = ({
|
|||
editorRef: MutableRefObject<EditorView | null>;
|
||||
onSaveContent: (updatedContent: string, debounce: boolean) => void;
|
||||
}) => {
|
||||
if (!editorRef || !editorRef.current) {
|
||||
if (!editorRef?.current) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue