iamsjy17 / Plotta.js

Javascript Functional Graph Library
MIT License
23 stars 5 forks source link

fix incorrect variable assignment by reference #36

Closed kupietools closed 2 years ago

kupietools commented 2 years ago

when creating the legend display table, variable 'array' was referencing tableData by reference instead of value, ultimate causing the first row of the legend to display incorrect values.

kupietools commented 2 years ago

This is the first time I've ever proposed a fix to be merged into someone else's project, please be gentle with me. I slapped a JSON.parse(JSON.stringify()) around the reference to tableData to fix.

iamsjy17 commented 2 years ago

Thank you for your kindness.

I can't merge this pr because you modified the build output.

Instead, I've included the fix in this pr