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 bae19f2 commit b9e0302Copy full SHA for b9e0302
src/Controllers/DatabaseController.js
@@ -121,7 +121,7 @@ DatabaseController.prototype.loadSchema = function() {
121
DatabaseController.prototype.redirectClassNameForKey = function(className, key) {
122
return this.loadSchema().then((schema) => {
123
var t = schema.getExpectedType(className, key);
124
- if (t.type == 'Relation') {
+ if (t && t.type == 'Relation') {
125
return t.targetClass;
126
} else {
127
return className;
0 commit comments