* [bug#51337,done,0.2h] check variable.

This commit is contained in:
liumengyi
2024-06-19 13:35:13 +08:00
committed by 田淑杰
parent 4906aff4b7
commit e8f669218f
+1 -1
View File
@@ -36,7 +36,7 @@ window.renderCell = function(result, info)
}
if(info.col.name == 'actions')
{
if(info.col.setting.list.edit && info.row.data.type != 'text' && typeof result[0]['props']['items'] != 'undefined')
if(info.col.setting.list.edit && info.row.data.type != 'text' && typeof result[0]['props'] != 'undefined' && typeof result[0]['props']['items'] != 'undefined')
{
result[0]['props']['items'][0]['data-toggle'] = 'modal';
return result;