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 4172472 commit bb1447bCopy full SHA for bb1447b
scout-ui/src/field-list/type-list-item.js
@@ -50,8 +50,9 @@ module.exports = AmpersandView.extend({
50
},
51
template: require('./type-list-item.jade'),
52
typeClicked: function() {
53
- if (this.parent.parent.minichartModel.modelType !== this.model.modelType) {
54
- this.parent.parent.switchView(this.model);
+ var fieldList = this.parent.parent;
+ if (!fieldList.minichartModel || (fieldList.minichartModel.modelType !== this.model.modelType)) {
55
+ fieldList.switchView(this.model);
56
}
57
58
0 commit comments