fix(google-sheets/list-sheet-headers): cover worksheetId 0
This commit is contained in:
@@ -15,12 +15,14 @@ type TSheetsValueResponse = {
|
||||
values: string[][];
|
||||
};
|
||||
|
||||
const hasValue = (value: any) => value !== null && value !== undefined;
|
||||
|
||||
export default {
|
||||
name: 'List Sheet Headers',
|
||||
key: 'listSheetHeaders',
|
||||
|
||||
async run($: IGlobalVariable) {
|
||||
if (!$.step.parameters.spreadsheetId || !$.step.parameters.worksheetId) {
|
||||
if (!hasValue($.step.parameters.spreadsheetId) || !hasValue($.step.parameters.worksheetId)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user