Skip to content

Commit

Permalink
null renderer fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nekufa committed Sep 16, 2019
1 parent a21fea3 commit b5e7cea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/admin/js/Space/Collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,10 @@ Ext.define('Admin.Space.Collection', {
header: f,
width: +config[i+1] || 50,
renderer: (v) => {
if(Ext.isObject(v) || (Ext.isArray(v) && v[0])) {
if (Ext.isObject(v) || (Ext.isArray(v) && v[0])) {
v = Ext.JSON.encode(v);
}
if (v.indexOf('<') !== -1) {
if (Ext.isString(v) && v.indexOf('<') !== -1) {
v = Ext.String.htmlEncode(v);
}
return v;
Expand Down

0 comments on commit b5e7cea

Please sign in to comment.