diff --git a/src/fides/api/models/privacy_request.py b/src/fides/api/models/privacy_request.py index 5c307d958d..e1a878a727 100644 --- a/src/fides/api/models/privacy_request.py +++ b/src/fides/api/models/privacy_request.py @@ -1446,7 +1446,7 @@ def hash_value( cls, value: MultiValue, encoding: str = "UTF-8", - ) -> Union[str, List[str]]: + ) -> Optional[Union[str, List[str]]]: """Utility function to hash the value(s) with a generated salt""" def hash_single_value(value: Union[str, int]) -> str: @@ -1459,7 +1459,9 @@ def hash_single_value(value: Union[str, int]) -> str: return hashed_value if isinstance(value, list): - return [hash_single_value(item) for item in value] + # Skip hashing lists: this avoids us hashing and later indexing potentially large values and our index + # is not useful for array search anyway + return None return hash_single_value(value)