From ae46c8e640ed64abd7605b289554377e0cdc0cb7 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 04 十月 2023 22:10:30 +0800
Subject: [PATCH] 2023-10-04

---
 src/tabviews/zshare/actionList/normalbutton/index.jsx |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/tabviews/zshare/actionList/normalbutton/index.jsx b/src/tabviews/zshare/actionList/normalbutton/index.jsx
index 017454a..816e450 100644
--- a/src/tabviews/zshare/actionList/normalbutton/index.jsx
+++ b/src/tabviews/zshare/actionList/normalbutton/index.jsx
@@ -2887,10 +2887,10 @@
               // eslint-disable-next-line
               let func = new Function('value', 'data', item.func)
               _item.value = func(_item.value, _data)
+              _item.value = _item.value !== undefined ? _item.value : ''
             } catch (e) {
-              if (window.GLOB.debugger === true) {
-                console.warn(e)
-              }
+              console.warn(e)
+              _item.value = ''
             }
           } else {
             _item.value = _item.value.replace(/(^\s*|\s*$)/g, '')

--
Gitblit v1.8.0