Skip to content

Commit

Permalink
Fix duplicate activities (#6627)
Browse files Browse the repository at this point in the history
Activity creation was duplicating the new activity on already visited
records of the same type.

The fix was to activate `shouldMatchRootQueryFilter` on createOne for
activity.
  • Loading branch information
lucasbordeau authored Aug 14, 2024
1 parent 9e7714e commit c63c18a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export const useOpenCreateActivityDrawer = ({
activityObjectNameSingular === CoreObjectNameSingular.Task
? CoreObjectNameSingular.TaskTarget
: CoreObjectNameSingular.NoteTarget,
shouldMatchRootQueryFilter: true,
});

const setActivityTargetableEntityArray = useSetRecoilState(
Expand Down

0 comments on commit c63c18a

Please sign in to comment.