From e8f669218feb904ddd5960b4503bf92b520dc038 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Wed, 19 Jun 2024 13:28:41 +0800 Subject: [PATCH] * [bug#51337,done,0.2h] check variable. --- module/my/js/doc.ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/my/js/doc.ui.js b/module/my/js/doc.ui.js index 89e80fff38..25b2cb9876 100644 --- a/module/my/js/doc.ui.js +++ b/module/my/js/doc.ui.js @@ -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;