CrazyTim / spin-wheel

An easy to use, themeable component for randomising choices and prizes.
https://crazytim.github.io/spin-wheel/examples/themes
MIT License
214 stars 57 forks source link

Unable to export as Json from the playground. #37

Closed muhammadbasitobaid closed 6 months ago

muhammadbasitobaid commented 6 months ago

Whenever I try to export Wheel with customized props, I'm unable to do so. in the console it gives: Uncaught ReferenceError: wheelPropInits is not defined at HTMLButtonElement.exportWheelAsJson (initEventListeners.js:152:45) This Repo has been of great help. I would really like to resolve this issue. image

muhammadbasitobaid commented 6 months ago

Leaving here for reference in https://github.com/CrazyTim/spin-wheel/blob/main/src/constants.js a constant is default exported contains all the Wheel props.

CrazyTim commented 6 months ago

@muhammadbasitobaid I have fixed in 36f378b, thanks for raising the issue. Please hard refresh the page and it should be working now.