Skip to content

Commit

Permalink
fix: adjust height parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
mguellsegarra committed Nov 25, 2024
1 parent 0f77b8e commit dcd265b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Indicator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ class Indicator extends Selection {
this._actionId = parseInt(props.action_id);
}
if (props.height) {
this._height = parseInt(props.height);
try {
this._height = parseInt(props.height);
} catch (e) {
console.error(e);
}
}
}
}
Expand Down

0 comments on commit dcd265b

Please sign in to comment.