From fa80cc6f1fe2b358e0450d0114b8f9f824e4854e Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期一, 25 九月 2023 18:10:48 +0800
Subject: [PATCH] 2023-09-25

---
 src/templates/sharecomponent/tablecomponent/index.jsx |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/templates/sharecomponent/tablecomponent/index.jsx b/src/templates/sharecomponent/tablecomponent/index.jsx
index 0b533e8..98f43d5 100644
--- a/src/templates/sharecomponent/tablecomponent/index.jsx
+++ b/src/templates/sharecomponent/tablecomponent/index.jsx
@@ -104,7 +104,7 @@
 
     let _table = tables.filter(item => item.TbName === value)[0]
 
-    if (selectedTables.findIndex(cell => cell.TbName === value) > -1) return
+    if (!_table || selectedTables.findIndex(cell => cell.TbName === value) > -1) return
 
     let _tables = [...selectedTables, _table]
 

--
Gitblit v1.8.0