From 27ad5f93a7b8eb99112c8844a3ca6e8950ebef9e Mon Sep 17 00:00:00 2001 From: FARAN Date: Mon, 11 Aug 2025 16:09:28 +0500 Subject: [PATCH] [Fix]: remove duplicate event listeners --- .../src/comps/comps/tableComp/tableToolbarComp.tsx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/client/packages/lowcoder/src/comps/comps/tableComp/tableToolbarComp.tsx b/client/packages/lowcoder/src/comps/comps/tableComp/tableToolbarComp.tsx index 2969e3c46..6b6f619ef 100644 --- a/client/packages/lowcoder/src/comps/comps/tableComp/tableToolbarComp.tsx +++ b/client/packages/lowcoder/src/comps/comps/tableComp/tableToolbarComp.tsx @@ -793,18 +793,15 @@ export const TableToolbar = memo(function TableToolbar(props: { const handleDownload = useCallback(() => { onDownload(); - onEvent("download"); - }, [onDownload, onEvent]); + }, [onDownload]); const handleSaveChanges = useCallback(() => { onSaveChanges(); - onEvent("saveChanges"); - }, [onSaveChanges, onEvent]); + }, [onSaveChanges]); const handleCancelChanges = useCallback(() => { onCancelChanges(); - onEvent("cancelChanges"); - }, [onCancelChanges, onEvent]); + }, [onCancelChanges]); const handleColumnFilterChange = useCallback((filters: TableFilterDataType[], stackType: TableFilter["stackType"]) => { if (