File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/components/solvers/Graph Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,9 @@ export function ProblemNode(props: NodeProps<ProblemNodeData>) {
133
133
// Type id is the same for all problems
134
134
const typeId = props . data . problemDtos [ 0 ] . typeId ;
135
135
const solverId = props . data . problemDtos [ 0 ] . solverId ;
136
- const solverName = solvers [ typeId ] ?. find ( ( s ) => s . id === solverId ) ?. name ;
136
+ const solver = solvers [ typeId ] ?. find ( ( s ) => s . id === solverId ) ;
137
+ const solverName = solver ?. name ;
138
+ const solverDescription = solver ?. description ?? "Solves the Problem." ;
137
139
138
140
// Fetch solvers for type if necessary
139
141
getSolvers ( typeId ) ;
@@ -342,6 +344,7 @@ export function ProblemNode(props: NodeProps<ProblemNodeData>) {
342
344
solver = { {
343
345
id : solverId ,
344
346
name : solverName ,
347
+ description : solverDescription ,
345
348
} }
346
349
button = { problemButton ( ) }
347
350
/>
You can’t perform that action at this time.
0 commit comments