From 2199d9cd546651022ac4a7a1bd3230215db82bcd Mon Sep 17 00:00:00 2001 From: leslie2046 <253605712@qq.com> Date: Thu, 24 Jul 2025 10:21:48 +0800 Subject: [PATCH] fix --- .../app/annotation/header-opts/index.tsx | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/web/app/components/app/annotation/header-opts/index.tsx b/web/app/components/app/annotation/header-opts/index.tsx index 664c93a412..a5df69c5f3 100644 --- a/web/app/components/app/annotation/header-opts/index.tsx +++ b/web/app/components/app/annotation/header-opts/index.tsx @@ -2,7 +2,11 @@ import type { FC } from 'react' import React, { Fragment, useEffect, useState } from 'react' import { useTranslation } from 'react-i18next' -import { RiAddLine, RiDeleteBinLine, RiMoreFill } from '@remixicon/react' +import { + RiAddLine, + RiDeleteBinLine, + RiMoreFill, +} from '@remixicon/react' import { useContext } from 'use-context-selector' import { useCSVDownloader, @@ -66,11 +70,8 @@ const HeaderOptions: FC = ({ } useEffect(() => { - const fetchData = async () => { - await fetchList() - } - fetchData() -}, [fetchList]) + fetchList() + }, []) useEffect(() => { if (controlUpdateList) fetchList() @@ -162,7 +163,7 @@ const HeaderOptions: FC = ({
{t('appAnnotation.table.header.addAnnotation')}
} + htmlContent={} position="br" trigger="click" btnElement={