Shift column index by startRange instead of keyColumnIndex

This commit is contained in:
Romain Dunand 2019-11-07 18:38:38 +01:00
parent b013e09f4a
commit 821556e85a

View file

@ -312,7 +312,7 @@ export class GoogleSheet {
// Property exists so add it to the data to update
// Get the column name in which the property data can be found
updateColumnName = String.fromCharCode(characterCode + keyColumnOrder.indexOf(propertyName));
updateColumnName = String.fromCharCode(rangeStart.toUpperCase().charCodeAt(0) + keyColumnOrder.indexOf(propertyName));
updateData.push({
range: `${sheet ? sheet + '!' : ''}${updateColumnName}${updateRowIndex}`,