Skip to content

Commit 4a2753f

Browse files
committed
update to latest ojs-runtime. closes #1546
1 parent c00da7c commit 4a2753f

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

src/resources/formats/html/ojs/quarto-ojs-runtime.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// @quarto/quarto-ojs-runtime v0.0.11 Copyright 2022 undefined
1+
// @quarto/quarto-ojs-runtime v0.0.12 Copyright 2022 undefined
22
var EOL = {},
33
EOF = {},
44
QUOTE = 34,
@@ -18837,8 +18837,11 @@ function createRuntime() {
1883718837
const keys = Object.keys(df);
1883818838
return df[keys[0]]
1883918839
.map((v, i) =>
18840-
Object.fromEntries(keys.map((key) => [key, df[key][i] || undefined]))
18841-
)
18840+
Object.fromEntries(keys.map((key) => {
18841+
const v = df[key][i];
18842+
const result = v === null ? undefined : v;
18843+
return [key, result];
18844+
})))
1884218845
.filter((v) => !Object.values(v).every((e) => e === undefined));
1884318846
}
1884418847
lib.transpose = () => transpose;

src/resources/formats/html/ojs/quarto-ojs-runtime.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)