The grid (core) ยท console.warn
grid.import.apply was given something it cannot import: pass delimited text, a preview from grid.import.preview, or an array of record objects.
Printed by The grid (core), prefixed [lattice], since 1.38.0.
Warnings reference › import.apply.input
- Identifier
import.apply.input- Raised by
- The grid (core)
- Since
- 1.38.0
What happened
The input is none of the three things apply takes, so nothing was imported and an empty record list was returned. A File or a Blob arrives here: both have to be read to text or bytes first.
The fix
Pass delimited text, a preview object, or an array of records.
The smallest fix
grid.import.apply(await file.text());
Reference
Covered in full at the API reference.