format code
This commit is contained in:
parent
75cc362409
commit
248560b3ef
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ function DataOutputComponent({
|
||||||
columnMode?: "intersection" | "union";
|
columnMode?: "intersection" | "union";
|
||||||
}) {
|
}) {
|
||||||
// If the rows are not an array of objects, convert them to an array of objects
|
// If the rows are not an array of objects, convert them to an array of objects
|
||||||
if(rows.some((row) => typeof row !== "object")) {
|
if (rows.some((row) => typeof row !== "object")) {
|
||||||
rows = rows.map((row) => ({ data: row }));
|
rows = rows.map((row) => ({ data: row }));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue