We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent abc6c43 commit 22a3197Copy full SHA for 22a3197
src/utils/schema.js
@@ -62,7 +62,7 @@ module.exports.slugifyFormID = function(schema, prefix = "") {
62
return prefix + schema.id;
63
} else {
64
// Return the slugified version of either:
65
- return prefix + (schema.inputName || schema.label || schema.model)
+ return prefix + (schema.inputName || schema.label || schema.model || "")
66
// NB: This is a very simple, conservative, slugify function,
67
// avoiding extra dependencies.
68
.toString()
@@ -77,4 +77,4 @@ module.exports.slugifyFormID = function(schema, prefix = "") {
77
// Remove anything that isn't a (English/ASCII) letter, number or dash.
78
.replace(/([^a-zA-Z0-9-]+)/g, "");
79
}
80
-};
+};
0 commit comments