Skip to content

Commit

Permalink
Fix activity target picker
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesBochet committed Nov 29, 2024
1 parent 65263b8 commit 2746670
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export const ActivityTargetInlineCellEditMode = ({
async () => {
const activityTargetsAfterUpdate =
activityTargetWithTargetRecords.filter((activityTarget) => {
const record = snapshot
const recordSelectedInMultiSelect = snapshot
.getLoadable(
objectRecordMultiSelectComponentFamilyState({
scopeId: relationPickerScopeId,
Expand All @@ -107,7 +107,9 @@ export const ActivityTargetInlineCellEditMode = ({
)
.getValue() as ObjectRecordAndSelected;

return record.selected;
return recordSelectedInMultiSelect
? recordSelectedInMultiSelect.selected
: true;
});
setActivityFromStore((currentActivity) => {
if (isNull(currentActivity)) {
Expand Down

0 comments on commit 2746670

Please sign in to comment.