Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reset interactive graph state when Polygon's options change (#1364)
## Summary: The right-side preview in the exercise editor did not reflect changes to the number of sides in a polygon. Here we reinitialize graph state when the props for number of sides changes as that was not happening previously. Manual Testing in the ZND: https://github.com/Khan/perseus/assets/60857422/c4f42f42-fbc4-4805-b5f7-5059408253c2 Issue: LEMS-2106 ## Test plan: - In a [ZND](https://prod-znd-240624-tamara-b.khanacademy.org/devadmin/content/courses/x6df8cbb5b9ebc9c6?lang=en), navigate to the exercise editor. Add an interactive graph widget. Change the graph type to Polygon. Confirm changing the number of sides changes the preview on the right. - Confirm all tests pass - Confirm all checks pass Author: Myranae Reviewers: nishasy, benchristel Required Reviewers: Approved By: nishasy, benchristel Checks: ✅ codecov/project, ✅ codecov/patch, ✅ Upload Coverage (ubuntu-latest, 20.x), ✅ Publish npm snapshot (ubuntu-latest, 20.x), ✅ Lint, Typecheck, Format, and Test (ubuntu-latest, 20.x), ✅ Check builds for changes in size (ubuntu-latest, 20.x), ✅ Cypress (ubuntu-latest, 20.x), ✅ Check for .changeset entries for all changed files (ubuntu-latest, 20.x), ✅ Jest Coverage (ubuntu-latest, 20.x), 🚫 Upload Coverage, ✅ gerald, ✅ Publish npm snapshot (ubuntu-latest, 20.x), ✅ Lint, Typecheck, Format, and Test (ubuntu-latest, 20.x), ✅ Cypress (ubuntu-latest, 20.x), 🚫 Check builds for changes in size (ubuntu-latest, 20.x), 🚫 Jest Coverage (ubuntu-latest, 20.x), ✅ Check for .changeset entries for all changed files (ubuntu-latest, 20.x), ✅ gerald, ✅ Upload Coverage (ubuntu-latest, 20.x), ✅ Publish npm snapshot (ubuntu-latest, 20.x), ✅ Lint, Typecheck, Format, and Test (ubuntu-latest, 20.x), ✅ Cypress (ubuntu-latest, 20.x), ✅ Jest Coverage (ubuntu-latest, 20.x), ✅ Check for .changeset entries for all changed files (ubuntu-latest, 20.x), ✅ Check builds for changes in size (ubuntu-latest, 20.x), ✅ Publish Storybook to Chromatic (ubuntu-latest, 20.x), ✅ gerald Pull Request URL: #1364
- Loading branch information