Skip to content

Commit

Permalink
fix: type error on Sales Pipeline Analytics
Browse files Browse the repository at this point in the history
(cherry picked from commit 4856e75)
  • Loading branch information
ruthra-kumar authored and mergify[bot] committed Dec 2, 2022
1 parent d7306d2 commit 3af2b9b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -217,7 +217,7 @@ def set_formatted_data(self, period, value, count_or_amount, assigned_to):

def check_for_assigned_to(self, period, value, count_or_amount, assigned_to, info):
if self.filters.get("assigned_to"):
for data in json.loads(info.get("opportunity_owner")):
for data in json.loads(info.get("opportunity_owner") or "[]"):
if data == self.filters.get("assigned_to"):
self.set_formatted_data(period, data, count_or_amount, assigned_to)
else:
Expand Down

0 comments on commit 3af2b9b

Please sign in to comment.