Skip to content

Commit

Permalink
Fix UNDEFINED error preventing rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
tascord committed Feb 11, 2024
1 parent b1fecc3 commit 0c89710
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ impl Chart {

let dash = Reflect::get(&segment, &"borderDash".into());
if let Ok(dash) = dash {
if dash == JsValue::UNDEFINED {
return;
}
Reflect::set(
&segment,
&"borderDash".into(),
Expand All @@ -66,6 +69,9 @@ impl Chart {

let color = Reflect::get(&segment, &"borderColor".into());
if let Ok(color) = color {
if color == JsValue::UNDEFINED {
return;
}
Reflect::set(
&segment,
&"borderColor".into(),
Expand Down

0 comments on commit 0c89710

Please sign in to comment.