Skip to content

Commit

Permalink
Fix history bug with null values
Browse files Browse the repository at this point in the history
  • Loading branch information
keller-mark committed Jan 5, 2019
1 parent c86854f commit 5d6e1bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "vue-declarative-plots",
"version": "1.2.14",
"version": "1.2.15",
"private": false,
"scripts": {
"serve": "vue-cli-service serve --open ./examples-src/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/history/HistoryStack.js
Expand Up @@ -165,7 +165,7 @@ export default class HistoryStack {
*/
parseParams(params) {
return params.map((p) => {
if(typeof p === "object") {
if(p !== null && p !== undefined && typeof p === "object") {
if(p.hasOwnProperty(VDP_COMPUTED_PARAM)) {
// can assume that this object represents a call to a "getter": getScale, getStack, etc...
console.assert(typeof p[GETTER_FUNCTION_KEY] === "number");
Expand Down

0 comments on commit 5d6e1bb

Please sign in to comment.