From 4a23b7a8f9c23d7903019e48869c8c3191fa0ffc Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 17 三月 2021 09:29:29 +0800 Subject: [PATCH] 2021-03-17 --- src/menu/modalconfig/index.jsx | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/menu/modalconfig/index.jsx b/src/menu/modalconfig/index.jsx index 155a031..c6fa855 100644 --- a/src/menu/modalconfig/index.jsx +++ b/src/menu/modalconfig/index.jsx @@ -259,7 +259,7 @@ if (_config.groups.length > 0) { _config.groups.forEach(group => { group.sublist = group.sublist.map(item => { - if (item.uuid !== res.uuid && item.field.toLowerCase() === res.field.toLowerCase()) { + if (item.uuid !== res.uuid && res.field && item.field && item.field.toLowerCase() === res.field.toLowerCase()) { fieldrepet = true } else if (item.uuid !== res.uuid && item.label === res.label) { labelrepet = true @@ -274,7 +274,7 @@ }) } else { _config.fields = _config.fields.map(item => { - if (item.uuid !== res.uuid && item.field.toLowerCase() === res.field.toLowerCase()) { + if (item.uuid !== res.uuid && res.field && item.field && item.field.toLowerCase() === res.field.toLowerCase()) { fieldrepet = true } else if (item.uuid !== res.uuid && item.label === res.label) { labelrepet = true -- Gitblit v1.8.0