Fixed hardcoded range

This commit is contained in:
Roman Krček
2025-09-02 19:30:33 +02:00
parent 03eeef5c69
commit 5ef9735ea5
3 changed files with 42 additions and 18 deletions

View File

@@ -172,8 +172,8 @@
}
try {
// Use the new unified API endpoint
const response = await fetch(`/private/api/google/sheets/${sheet.id}/data`, {
// Use the new unified API endpoint, requesting only a preview range
const response = await fetch(`/private/api/google/sheets/${sheet.id}/data?range=A1:Z10`, {
method: 'GET',
headers: {
Authorization: `Bearer ${localStorage.getItem('google_refresh_token')}`