Skip to content

Commit

Permalink
Merge pull request #19035 from linghaoSu/fix/typed-array-list
Browse files Browse the repository at this point in the history
fix(source): fix multi typed array detect error
  • Loading branch information
Ovilia authored Aug 29, 2023
2 parents 586ca04 + db20365 commit bb1e18c
Show file tree
Hide file tree
Showing 2 changed files with 272 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/data/Source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ export function detectSourceFormat(data: DatasetOption['source']): SourceFormat
if (item == null) {
continue;
}
else if (isArray(item)) {
else if (isArray(item) || isTypedArray(item)) {
sourceFormat = SOURCE_FORMAT_ARRAY_ROWS;
break;
}
Expand Down
271 changes: 271 additions & 0 deletions test/dataset-source-two-typed-array.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bb1e18c

Please sign in to comment.