We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9bf748 commit ffd0328Copy full SHA for ffd0328
1 file changed
src/components/ParameterDataTypes.vue
@@ -152,7 +152,8 @@ export default {
152
dataTypeTitle(type) {
153
// Set a human-readable title if none is set
154
if (type.schema && !type.schema.title) {
155
- let supportedType = SUPPORTED_TYPES.find(st => st.subtype === type.schema.subtype || st.type === type.schema.type);
+ let supportedType = SUPPORTED_TYPES.find(st => st.subtype && st.subtype === type.schema.subtype)
156
+ || SUPPORTED_TYPES.find(st => st.type === type.schema.type);
157
if (supportedType && supportedType.title) {
158
return supportedType.title;
159
}
0 commit comments