We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36a19fa commit 6a07ac8Copy full SHA for 6a07ac8
1 file changed
src/core/components/examples-select-value-retainer.jsx
@@ -187,10 +187,11 @@ export default class ExamplesSelectValueRetainer extends React.PureComponent {
187
188
const examplesMatchingNewValue = examples.filter(
189
(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
+ Map.isMap(example) &&
+ (example.get("value") === newValue ||
+ // sometimes data is stored as a string (e.g. in Request Bodies), so
+ // let's check against a stringified version of our example too
194
+ stringify(example.get("value")) === newValue)
195
)
196
197
if (examplesMatchingNewValue.size) {
0 commit comments