sfc-utils 1.4.167 → 1.4.168
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/copy/sheets.js +4 -0
- package/package.json +1 -1
package/copy/sheets.js
CHANGED
|
@@ -166,6 +166,10 @@ const processSheetData = async (
|
|
|
166
166
|
majorDimension: "ROWS",
|
|
167
167
|
});
|
|
168
168
|
var { values } = response.data;
|
|
169
|
+
if (!values || !values.length) {
|
|
170
|
+
console.log("No data found in sheet", sheet.properties.title);
|
|
171
|
+
return;
|
|
172
|
+
}
|
|
169
173
|
var header = values.shift();
|
|
170
174
|
var swapIndexes = [];
|
|
171
175
|
console.log("Swap type:", typeof languageSwap);
|