Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahStapp committed Aug 6, 2018
1 parent 50c68f2 commit c251baa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plyto/plyto.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class PlytoAPI:
:param progress: the current progress of iterating through the dataset
"""

def __init__(self, spec, size={}, steps={}):
def __init__(self, spec, size=0, steps=0):
self.spec = spec
self.size = size
self.total_steps = steps
Expand Down
2 changes: 1 addition & 1 deletion src/ModelViewWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class ModelViewPanel extends React.Component<
editor: false
}
};
if (this.state.updateGraph && this.state.dataSet.length !== 0) {
if (this.state.updateGraph) {
this.state.spec.forEach(spec => {
VegaEmbed('#' + spec['name'], spec, options).then(res => {
res.view.insert('dataSet', this.state.dataSet).run();
Expand Down

0 comments on commit c251baa

Please sign in to comment.