Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lib/GoogleSpreadsheetRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ class GoogleSpreadsheetRow {
values: [this._rawData],
},
});
this._rawData = response.data.updatedData.values[0];
this._rawData = response.data.updatedData?.values[0] || this._rawData.map(emptyCellValue => '');
// sending an array of empty strings such as ["", ""] (Clearing the row)
// will result in a response with no `.value` in it, thus causing an error `cannot read property '0' of undefined.
// This fix will return an array of empty strings, the array of the length is the array of the original request's rawData
}

// delete this row
Expand Down