Skip to content

Commit 98c9d61

Browse files
committed
don't try to plot in-progress builds
1 parent 12d45bc commit 98c9d61

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/builds.mjs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,12 @@ const schema = {
6161

6262
getBuilds('engine262/engine262')
6363
.then((builds) => {
64-
schema.data.values = builds.map((b) => ({
65-
state: b.state,
66-
finished_at: b.finished_at,
67-
duration: b.duration / 60,
68-
}));
64+
schema.data.values = builds
65+
.filter((b) => schema.encoding.color.scale.domain.includes(b.state))
66+
.map((b) => ({
67+
state: b.state,
68+
finished_at: b.finished_at,
69+
duration: b.duration / 60,
70+
}));
6971
vegaEmbed('#view', schema);
7072
});

0 commit comments

Comments
 (0)