Skip to content

Commit dd1477a

Browse files
authored
updates (#18899)
1 parent c7fc25a commit dd1477a

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

components/google_sheets/actions/add-single-row/add-single-row.mjs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default {
1010
key: "google_sheets-add-single-row",
1111
name: "Add Single Row",
1212
description: "Add a single row of data to Google Sheets. [See the documentation](https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/append)",
13-
version: "2.1.18",
13+
version: "2.1.19",
1414
annotations: {
1515
destructiveHint: false,
1616
openWorldHint: true,
@@ -95,10 +95,11 @@ export default {
9595
optional: true,
9696
};
9797
}
98-
props.allColumns = {
99-
type: "string",
100-
hidden: true,
101-
default: JSON.stringify(values),
98+
props.myColumnData = {
99+
type: "string[]",
100+
label: "Enter Values as Array",
101+
description: "Provide a value for each cell of the row. Google Sheets accepts strings, numbers and boolean values for each cell. To set a cell to an empty value, pass an empty string. This field will overwrite the column input fields.",
102+
optional: true,
102103
};
103104
} catch (err) {
104105
console.error("Error fetching headers:", err);
@@ -143,9 +144,9 @@ export default {
143144
if (this.hasHeaders
144145
&& !isDynamicExpression(sheetId)
145146
&& !isDynamicExpression(worksheetId)
146-
&& this.allColumns
147+
&& !this.myColumnData
147148
) {
148-
const rows = JSON.parse(this.allColumns);
149+
const { values: rows } = await this.googleSheets.getSpreadsheetValues(sheetId, `${worksheet?.properties?.title}!1:1`);
149150
const [
150151
headers,
151152
] = rows;

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.9.2",
3+
"version": "0.9.3",
44
"description": "Pipedream Google_sheets Components",
55
"main": "google_sheets.app.mjs",
66
"keywords": [

0 commit comments

Comments
 (0)