fix: type error on Sales Pipeline Analytics

(cherry picked from commit 4856e750f9)
This commit is contained in:
ruthra kumar
2022-12-01 18:08:32 +05:30
committed by Mergify
parent d7306d2ec4
commit 3af2b9b423

View File

@@ -217,7 +217,7 @@ class SalesPipelineAnalytics(object):
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: