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 = () => {