Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
39bytes authored and itsjoeoui committed Aug 29, 2023
1 parent 851583d commit 81be706
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flojoy/plotly_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ def data_container_to_plotly(data: DataContainer) -> dict[str, Any] | None:
case "Scalar":
fig.add_trace(
go.Indicator(
# FIXME: Remove this hack to fix the issue of
# nodes not actually returning a float for scalar values
value=data_copy.c
if isinstance(data_copy.c, float)
else data_copy.c[0],
Expand Down

0 comments on commit 81be706

Please sign in to comment.