From ae22a38ee369f6830b65ee9f5c7c3ba03bc47ff3 Mon Sep 17 00:00:00 2001 From: moshangqi <2509678669@qq.com> Date: Tue, 7 Nov 2023 11:37:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20useEffect=20?= =?UTF-8?q?=E4=B8=AD=E4=BE=9D=E8=B5=96=E9=94=99=E8=AF=AF=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E5=BE=AA=E7=8E=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/components/SuperSideBar/impl/ClipAssistant/index.tsx | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 71016f8f..edf014e6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "yuque-chrome-extension", - "version": "0.5.0", + "version": "0.5.1", "description": "语雀浏览器插件", "private": true, "releaseNotes": [ diff --git a/src/components/SuperSideBar/impl/ClipAssistant/index.tsx b/src/components/SuperSideBar/impl/ClipAssistant/index.tsx index e7a5d87c..91d930a6 100644 --- a/src/components/SuperSideBar/impl/ClipAssistant/index.tsx +++ b/src/components/SuperSideBar/impl/ClipAssistant/index.tsx @@ -232,14 +232,11 @@ function ClipContent() { }; useEffect(() => { - if ( - selectSavePosition?.id !== DefaultSavePosition.id || - !!userTags.length - ) { + if (selectSavePosition?.id !== DefaultSavePosition.id) { return; } handleRequestTag(); - }, [selectSavePosition, userTags]); + }, [selectSavePosition]); useEffect(() => { const onStartSelectArea = () => {