-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Bugfix] Interactive Graph crashes in editor when setting domain for …
…locked function (#2223) ## Summary: When editing an Interactive Graph widget and specifying only one of the domain values for a locked function, the exercise is then unable to be loaded in the editor once it has been saved and re-opened. The problem was that the logic handling the domain values (an array) wasn't set up to handle null values within the array. Issue: CP-8932 ## Test plan: 1. Open an exercise editor 2. Add an interactive graph widget 3. Add a locked function 4. Set the value of one of the domain options to some number (leave the other one blank) 5. Click the "Save All" button for the editor 6. When the page reloads, the page should render (previously, it was showing the "Oops. Something went wrong" message. Author: mark-fitzgerald Reviewers: benchristel, mark-fitzgerald, nishasy, #perseus Required Reviewers: Approved By: nishasy Checks: ✅ Publish npm snapshot (ubuntu-latest, 20.x), ✅ Check for .changeset entries for all changed files (ubuntu-latest, 20.x), ✅ Cypress (ubuntu-latest, 20.x), ✅ Check builds for changes in size (ubuntu-latest, 20.x), ✅ Lint, Typecheck, Format, and Test (ubuntu-latest, 20.x), ✅ Publish Storybook to Chromatic (ubuntu-latest, 20.x) Pull Request URL: #2223
- Loading branch information
1 parent
71329fe
commit f8a4bec
Showing
7 changed files
with
346 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"@khanacademy/perseus": patch | ||
"@khanacademy/perseus-core": patch | ||
"@khanacademy/perseus-editor": patch | ||
--- | ||
|
||
[Bugfix] Interactive Graph crashes in editor when setting domain for locked function |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.