Skip to content

Commit

Permalink
need to update OnDropToCard on card changes (#3076)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbishel committed May 24, 2022
1 parent c6869df commit 3f49be6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/src/components/table/table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const Table = (props: Props): JSX.Element => {
const onDropToCard = useCallback((srcCard: Card, dstCard: Card) => {
Utils.log(`onDropToCard: ${dstCard.title}`)
onDropToGroup(srcCard, dstCard.fields.properties[activeView.fields.groupById!] as string, dstCard.id)
}, [activeView.fields.groupById])
}, [activeView.fields.groupById, cards])

const onDropToGroup = useCallback((srcCard: Card, groupID: string, dstCardID: string) => {
Utils.log(`onDropToGroup: ${srcCard.title}`)
Expand Down

0 comments on commit 3f49be6

Please sign in to comment.