🐛 Fix issue when looking up values on Google Sheets (#1708)

This commit is contained in:
Ricardo Espinoza 2021-04-30 16:35:42 -04:00 committed by GitHub
parent 5d9280a7ad
commit 7c418aafe7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -415,6 +415,12 @@ export class GoogleSheet {
for (let i = 0; i < keys.length; i++) {
inputData[rowIndex][i] = '';
}
} else if (inputData[rowIndex].length < keys.length) {
for (let i = 0; i < keys.length; i++) {
if (inputData[rowIndex][i] === undefined) {
inputData[rowIndex].push('');
}
}
}
}
// Loop over all the lookup values and try to find a row to return