We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31e37a6 commit c5a72d0Copy full SHA for c5a72d0
ExportAdapter.js
@@ -105,7 +105,7 @@ ExportAdapter.prototype.loadSchema = function(acceptor) {
105
ExportAdapter.prototype.redirectClassNameForKey = function(className, key) {
106
return this.loadSchema().then((schema) => {
107
var t = schema.getExpectedType(className, key);
108
- var match = t.match(/^relation<(.*)>$/);
+ var match = t ? t.match(/^relation<(.*)>$/) : false; // if no field exist, undefined.match error thrown
109
if (match) {
110
return match[1];
111
} else {
0 commit comments