Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: How to force load cells? #681

Open
Tiffceet opened this issue Mar 13, 2024 · 1 comment
Open

Question: How to force load cells? #681

Tiffceet opened this issue Mar 13, 2024 · 1 comment

Comments

@Tiffceet
Copy link

Tiffceet commented Mar 13, 2024

Currently, using loadCells() will discard some columns if the first cell in the column is empty. Example below:
image
doing await sheet.loadCells('A1:C4'); would only load the first 2 columns. How do I force load all cells that I have specified to load?

Code:

await sheet.loadCells('A1:C4');
const sheetData = await sheet.getRows();
for (const row of sheetData) {
  console.log(row._rawData)
}

Output:

[ "ID", "NAME" ]
[ "1", "Name 1" ] // Missing "Other cells"
[ "1", "Name 1" ]
[ "1", "Name 1" ]
@theoephraim
Copy link
Owner

theoephraim commented Mar 13, 2024

interesting, I'll have to check this out as it's definitely not the intended behaviour... thanks for reporting it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants