Skip to content

Commit

Permalink
Fix vegafusion-runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
jonmmease committed Nov 17, 2023
1 parent 1125d4d commit a91553c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vegafusion-runtime/src/task_graph/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ use vegafusion_core::proto::gen::tasks::{
TaskValue as ProtoTaskValue, TzConfig, Variable, VariableNamespace,
};
use vegafusion_core::spec::chart::ChartSpec;
use vegafusion_core::spec::values::MissingNullOrValue;
use vegafusion_core::task_graph::graph::ScopedVariable;
use vegafusion_dataframe::connection::Connection;

Expand Down Expand Up @@ -281,7 +282,7 @@ impl VegaFusionRuntime {
match export_update.namespace {
ExportUpdateNamespace::Signal => {
let signal = spec.get_nested_signal_mut(&scope, name)?;
signal.value = Some(export_update.value);
signal.value = MissingNullOrValue::Value(export_update.value);
}
ExportUpdateNamespace::Data => {
let data = spec.get_nested_data_mut(&scope, name)?;
Expand Down Expand Up @@ -681,7 +682,7 @@ impl VegaFusionRuntime {
ExportUpdateNamespace::Signal => {
// Always inline signal values
let signal = spec.get_nested_signal_mut(&scope, name)?;
signal.value = Some(export_update.value.to_json()?);
signal.value = MissingNullOrValue::Value(export_update.value.to_json()?);
}
ExportUpdateNamespace::Data => {
let data = spec.get_nested_data_mut(&scope, name)?;
Expand Down

0 comments on commit a91553c

Please sign in to comment.