Commit 024eb576 authored by Jeff Avallone's avatar Jeff Avallone

Renaming mutation to a more imperative name

parent d5893298
......@@ -76,7 +76,7 @@ class AppContextProvider extends React.PureComponent {
state = {}
mutations = {
svgData: async ({ svg, width, height }) => {
setSvgMarkup: async ({ svg, width, height }) => {
if (svg !== this.state.svg) {
this.setState({
svg,
......
......@@ -17,7 +17,7 @@ class SVG extends React.PureComponent {
}
const svg = this.svgContainer.current.querySelector('svg');
this.context.svgData({
this.context.setSvgMarkup({
svg: svg.outerHTML,
width: svg.getAttribute('width'),
height: svg.getAttribute('height')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment