Skip to content

Commit bae4aab

Browse files
committed
fix(table): remove duplicate onDragEnd call from handleDrop
1 parent 84013ff commit bae4aab

File tree

1 file changed

+3
-7
lines changed
  • apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/table

1 file changed

+3
-7
lines changed

apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/table/table.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2653,13 +2653,9 @@ const ColumnHeaderMenu = React.memo(function ColumnHeaderMenu({
26532653
[column.name, onDragOver]
26542654
)
26552655

2656-
const handleDrop = useCallback(
2657-
(e: React.DragEvent) => {
2658-
e.preventDefault()
2659-
onDragEnd?.()
2660-
},
2661-
[onDragEnd]
2662-
)
2656+
const handleDrop = useCallback((e: React.DragEvent) => {
2657+
e.preventDefault()
2658+
}, [])
26632659

26642660
const handleDragEnd = useCallback(() => {
26652661
onDragEnd?.()

0 commit comments

Comments
 (0)