mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-25 01:53:44 +03:00
fix: hotfix, crash after 2.1 release
This commit is contained in:
parent
ae74ef95c3
commit
9e14e1484c
|
@ -393,7 +393,7 @@ export function getSerializedValue(field: FieldModel, example: any) {
|
||||||
// decode for better readability in examples: see https://github.com/Redocly/redoc/issues/1138
|
// decode for better readability in examples: see https://github.com/Redocly/redoc/issues/1138
|
||||||
return decodeURIComponent(serializeParameterValue(field, example));
|
return decodeURIComponent(serializeParameterValue(field, example));
|
||||||
} else {
|
} else {
|
||||||
return example;
|
return String(example);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user