Skip to content

Commit 8cc85bc

Browse files
committed
bug fix
1 parent 6545da9 commit 8cc85bc

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

components/hubspot/actions/retrieve-workflows/retrieve-workflows.mjs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "hubspot-retrieve-workflows",
55
name: "Retrieve Workflows",
66
description: "Retrieve a list of all workflows. [See the documentation](https://developers.hubspot.com/docs/api-reference/legacy/create-manage-workflows-v3/get-automation-v3-workflows)",
7-
version: "0.0.2",
7+
version: "0.0.3",
88
type: "action",
99
props: {
1010
hubspot,
@@ -13,8 +13,7 @@ export default {
1313
const response = await this.hubspot.listWorkflows({
1414
$,
1515
});
16-
17-
$.export("$summary", `Successfully retrieved ${response.results.length} workflows`);
16+
$.export("$summary", `Successfully retrieved ${response.results?.length || 0} workflows`);
1817
return response;
1918
},
2019
};

components/hubspot/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/hubspot",
3-
"version": "1.7.6",
3+
"version": "1.7.7",
44
"description": "Pipedream Hubspot Components",
55
"main": "hubspot.app.mjs",
66
"keywords": [

0 commit comments

Comments
 (0)