Skip to content

Commit 59fa253

Browse files
committed
bug fix
1 parent 6979126 commit 59fa253

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

components/google_sheets/actions/find-row/find-row.mjs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
key: "google_sheets-find-row",
88
name: "Find Row",
99
description: "Find one or more rows by a column and value. [See the documentation](https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/get)",
10-
version: "0.2.8",
10+
version: "0.2.9",
1111
type: "action",
1212
props: {
1313
googleSheets,
@@ -64,6 +64,10 @@ export default {
6464
range: `${worksheet?.properties?.title}!${this.column}:${this.column}`,
6565
})).data.values;
6666

67+
if (!colValues?.length) {
68+
return [];
69+
}
70+
6771
const rows = [];
6872
const result = colValues.reduce((values, value, index) => {
6973
if (value == this.value) {
@@ -74,7 +78,7 @@ export default {
7478
});
7579
}
7680
return rows;
77-
});
81+
}, []);
7882

7983
if (!this.exportRow) {
8084
return result;

components/google_sheets/package.json

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

0 commit comments

Comments
 (0)