Skip to content

Commit

Permalink
fix(ExternalTasks): get right props
Browse files Browse the repository at this point in the history
  • Loading branch information
LamaEats committed Sep 13, 2024
1 parent be4da8f commit 59f1ece
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/GoalActivityFeed/GoalActivityFeed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export const GoalActivityFeed = forwardRef<HTMLDivElement, GoalActivityFeedProps
async (data: {
title: string;
weight: string;
selected?: { id?: string; externalKey?: string };
selected?: { id?: string; key?: string };
mode: AddCriteriaMode;
}) => {
await onGoalCriteriaAdd({
Expand All @@ -103,9 +103,9 @@ export const GoalActivityFeed = forwardRef<HTMLDivElement, GoalActivityFeedProps
}
: undefined,
externalTask:
data.mode === 'task' && data.selected?.externalKey
data.mode === 'task' && data.selected?.key
? {
externalKey: data.selected.externalKey,
externalKey: data.selected.key,
}
: undefined,
});
Expand Down

0 comments on commit 59f1ece

Please sign in to comment.