Skip to content

Commit 50955af

Browse files
committed
fix(test result): history graph broken when NaN values present
1 parent 883016f commit 50955af

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

testgen/ui/views/test_results.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,8 @@ def write_history_chart_v2(data: pd.DataFrame):
665665
return testgen.testgen_component(
666666
"test_results_chart",
667667
props={
668-
"data": data.to_dict("records"),
668+
# Fix NaN values
669+
"data": json.loads(data.to_json(orient="records")),
669670
},
670671
)
671672

0 commit comments

Comments
 (0)