diff --git a/packages/perseus-editor/src/widgets/interactive-graph-editor/index.tsx b/packages/perseus-editor/src/widgets/interactive-graph-editor/index.tsx index 9905f2c5f5..bb921736a1 100644 --- a/packages/perseus-editor/src/widgets/interactive-graph-editor/index.tsx +++ b/packages/perseus-editor/src/widgets/interactive-graph-editor/index.tsx @@ -4,7 +4,8 @@ import { interactiveSizes, InteractiveGraphWidget, SizingUtils, - Util, PerseusGraphType, + Util, + PerseusGraphType, } from "@khanacademy/perseus"; import {View} from "@khanacademy/wonder-blocks-core"; import {OptionItem, SingleSelect} from "@khanacademy/wonder-blocks-dropdown"; @@ -438,18 +439,18 @@ class InteractiveGraphEditor extends React.Component { {this.props.correct?.numSides !== "unlimited" && ( - - )} + + )} {this.props.correct?.numSides !== "unlimited" && ( - - )} + + )}

@@ -670,24 +671,24 @@ class InteractiveGraphEditor extends React.Component { // Only show the "Add locked figure" dropdown if the graph // is using Mafs. this.props.graph && - this.props.apiOptions?.flags?.mafs?.[ - this.props.graph.type + this.props.apiOptions?.flags?.mafs?.[ + this.props.graph.type ] && ( - - ) + } + figures={this.props.lockedFigures} + onChange={this.props.onChange} + /> + ) } );