fix: front not running properly (#971)

This commit is contained in:
Jérémy M
2023-07-28 11:36:27 +02:00
committed by GitHub
parent 2cc63e14aa
commit 44a9c2687f
2 changed files with 8 additions and 3 deletions

View File

@ -70,7 +70,9 @@ export function useHandleCheckableActivityTargetChange({
});
const activityTargetIdsToDelete = activity.activityTargets
.filter(({ commentableId }) => !entityValues[commentableId])
.filter(
({ commentableId }) => commentableId && !entityValues[commentableId],
)
.map(({ id }) => id);
if (activityTargetIdsToDelete.length)