From 89fb1308d92e10a27cf8f91f4dd766eb38976e12 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 26 十一月 2020 21:56:42 +0800
Subject: [PATCH] 2020-11-26

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

diff --git a/src/templates/sharecomponent/actioncomponent/index.jsx b/src/templates/sharecomponent/actioncomponent/index.jsx
index c7ccd61..7b6ec62 100644
--- a/src/templates/sharecomponent/actioncomponent/index.jsx
+++ b/src/templates/sharecomponent/actioncomponent/index.jsx
@@ -62,7 +62,7 @@
     if (!is(fromJS(nextProps.config.action), fromJS(this.props.config.action)) && !is(fromJS(nextProps.config.action), fromJS(actionlist))) {
       let len = nextProps.config.action.length
       let item = nextProps.config.action[len - 1]
-      if (item.copyType && item.focus) {
+      if (item && item.focus) {
         this.handleAction(item)
       }
       this.setState({actionlist: fromJS(nextProps.config.action).toJS()})

--
Gitblit v1.8.0