Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lakshmi2506 committed Dec 4, 2023
1 parent effce7f commit cf2d2bd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/js/components/tasks/retrieveMetadata/changes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,10 @@ const ChangesForm = ({
};
const checkboxRef = useRef(null);
useEffect(() => {
if (checkboxRef.current && checkboxRef.current?.input) {
checkboxRef.current.input.focus();
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
if (checkboxRef.current && checkboxRef.current!.input) {
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
checkboxRef.current!.input.focus();
}
}, [totalChanges]);

Expand Down

0 comments on commit cf2d2bd

Please sign in to comment.