Skip to content

Commit

Permalink
fix: use chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
kristw committed Feb 5, 2020
1 parent f580611 commit 1d78394
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/react-vega/src/Vega.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ export default class Vega extends React.PureComponent<VegaProps> {
datasetNames.forEach(name => {
updateData(view, name, data[name]);
});
view.resize();
view.run();
view.resize().run();
});
}
}
Expand Down

0 comments on commit 1d78394

Please sign in to comment.