Skip to content

Commit a3ce205

Browse files
Merge pull request #1956 from iamfaran/fix/table-events
[Fix]: remove duplicate event listeners
2 parents 5745ad0 + 27ad5f9 commit a3ce205

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

client/packages/lowcoder/src/comps/comps/tableComp/tableToolbarComp.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -793,18 +793,15 @@ export const TableToolbar = memo(function TableToolbar(props: {
793793

794794
const handleDownload = useCallback(() => {
795795
onDownload();
796-
onEvent("download");
797-
}, [onDownload, onEvent]);
796+
}, [onDownload]);
798797

799798
const handleSaveChanges = useCallback(() => {
800799
onSaveChanges();
801-
onEvent("saveChanges");
802-
}, [onSaveChanges, onEvent]);
800+
}, [onSaveChanges]);
803801

804802
const handleCancelChanges = useCallback(() => {
805803
onCancelChanges();
806-
onEvent("cancelChanges");
807-
}, [onCancelChanges, onEvent]);
804+
}, [onCancelChanges]);
808805

809806
const handleColumnFilterChange = useCallback((filters: TableFilterDataType[], stackType: TableFilter["stackType"]) => {
810807
if (

0 commit comments

Comments
 (0)