Skip to content

Commit ec434b8

Browse files
committed
fix empty array bug
1 parent 4394dba commit ec434b8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sources/hubspot/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,12 @@ def fetch_data_for_properties(
9898
associations = CRM_OBJECT_ASSOCIATIONS[object_type]
9999
joined_associations = ",".join(associations)
100100
params: Dict[str, Any] = {
101-
"associations": joined_associations,
102101
"properties": joined_props,
103102
"limit": 100,
104103
}
104+
if associations:
105+
params["associations"] = joined_associations
106+
105107
context: Optional[Dict[str, Any]] = (
106108
{SOFT_DELETE_KEY: False} if soft_delete else None
107109
)

0 commit comments

Comments
 (0)