Fix issue #984 (#985)

This commit is contained in:
Ricardo Espinoza 2020-09-23 16:20:44 -04:00 committed by GitHub
parent bb33333eba
commit 3ed3ee779b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -611,7 +611,10 @@ export class GoogleSheets implements INodeType {
let range = '';
if (operation !== 'delete') {
range = this.getNodeParameter('range', 0) as string;
range = encodeURIComponent(range);
if (range.includes('!')) {
const [sheet, ranges] = range.split('!');
range = `${encodeURIComponent(sheet)}!${ranges}`;
}
}
const options = this.getNodeParameter('options', 0, {}) as IDataObject;