Skip to content

Commit ffd0328

Browse files
committed
Detect data types for selection better
1 parent e9bf748 commit ffd0328

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/components/ParameterDataTypes.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ export default {
152152
dataTypeTitle(type) {
153153
// Set a human-readable title if none is set
154154
if (type.schema && !type.schema.title) {
155-
let supportedType = SUPPORTED_TYPES.find(st => st.subtype === type.schema.subtype || st.type === type.schema.type);
155+
let supportedType = SUPPORTED_TYPES.find(st => st.subtype && st.subtype === type.schema.subtype)
156+
|| SUPPORTED_TYPES.find(st => st.type === type.schema.type);
156157
if (supportedType && supportedType.title) {
157158
return supportedType.title;
158159
}

0 commit comments

Comments
 (0)