File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -187,10 +187,11 @@ export default class ExamplesSelectValueRetainer extends React.PureComponent {
187187
188188 const examplesMatchingNewValue = examples . filter (
189189 ( example ) =>
190- example . get ( "value" ) === newValue ||
191- // sometimes data is stored as a string (e.g. in Request Bodies), so
192- // let's check against a stringified version of our example too
193- stringify ( example . get ( "value" ) ) === newValue
190+ Map . isMap ( example ) &&
191+ ( example . get ( "value" ) === newValue ||
192+ // sometimes data is stored as a string (e.g. in Request Bodies), so
193+ // let's check against a stringified version of our example too
194+ stringify ( example . get ( "value" ) ) === newValue )
194195 )
195196
196197 if ( examplesMatchingNewValue . size ) {
You can’t perform that action at this time.
0 commit comments