fix(Google Sheets Node): Fix short sheet name interpreted as range (#6989)

Github issue / Community forum post (link here to close automatically):
https://github.com/n8n-io/n8n/issues/6203
This commit is contained in:
Marcus 2023-08-22 18:05:54 +02:00 committed by GitHub
parent 0ddfc73bee
commit 00268a019a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,7 +44,8 @@ export class GoogleSheet {
const [sheet, ranges] = range.split('!');
return `${encodeURIComponent(sheet)}!${ranges}`;
}
return encodeURIComponent(range);
// Use '' so that sheet is not interpreted as range
return encodeURIComponent(`'${range}'`);
}
/**