From 4f2e4e84fd2cdca1407ac06c1b44319518be39b9 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 21 十二月 2020 19:11:05 +0800 Subject: [PATCH] 2020-12-21 --- src/menu/components/card/cardcellcomponent/index.jsx | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/menu/components/card/cardcellcomponent/index.jsx b/src/menu/components/card/cardcellcomponent/index.jsx index 24eb7db..d7aea51 100644 --- a/src/menu/components/card/cardcellcomponent/index.jsx +++ b/src/menu/components/card/cardcellcomponent/index.jsx @@ -544,6 +544,10 @@ const { elements } = this.state if (cards.uuid !== _cards.uuid) return + + let _index = elements.findIndex(cell => cell.uuid === btn.uuid) + + if (_index === -1) return let _elements = elements.map(cell => { if (cell.uuid === btn.uuid) { -- Gitblit v1.8.0