Skip to content

Commit 5099907

Browse files
authored
Merge pull request #290 from dastiw1/master
fix custom field error
2 parents abc6c43 + 58bbe06 commit 5099907

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/schema.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ module.exports.slugifyFormID = function(schema, prefix = "") {
6262
return prefix + schema.id;
6363
} else {
6464
// Return the slugified version of either:
65-
return prefix + (schema.inputName || schema.label || schema.model)
65+
return prefix + (schema.inputName || schema.label || schema.model || "")
6666
// NB: This is a very simple, conservative, slugify function,
6767
// avoiding extra dependencies.
6868
.toString()
@@ -77,4 +77,4 @@ module.exports.slugifyFormID = function(schema, prefix = "") {
7777
// Remove anything that isn't a (English/ASCII) letter, number or dash.
7878
.replace(/([^a-zA-Z0-9-]+)/g, "");
7979
}
80-
};
80+
};

0 commit comments

Comments
 (0)