Silence a warning to avoid changing behaviour for now

This commit is contained in:
Manav Rathi
2024-07-10 10:22:14 +05:30
parent 24858ab73b
commit d4be782b9c

View File

@@ -152,6 +152,9 @@ const FaceCropImageView: React.FC<FaceCropImageViewProps> = ({ faceID }) => {
didCancel = true;
if (objectURL) URL.revokeObjectURL(objectURL);
};
// TODO: The linter warning is actually correct, objectURL should be a
// dependency, but adding that require reworking this code first.
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [faceID]);
return objectURL ? (