[Common] Fix dataview simple component
This commit is contained in:
parent
0643f6756d
commit
e12285a3a1
|
@ -893,7 +893,7 @@ define([
|
|||
if (record) {
|
||||
record.set({selected: true});
|
||||
var idx = _.indexOf(this.store.models, record);
|
||||
if (idx>=0 && this.dataViewItems.length>idx) {
|
||||
if (idx>=0 && this.dataViewItems && this.dataViewItems.length>idx) {
|
||||
this.dataViewItems[idx].el.addClass('selected');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue