diff --git a/src/utils/programStore.ts b/src/utils/programStore.ts index ac34ef4..4e12bb3 100644 --- a/src/utils/programStore.ts +++ b/src/utils/programStore.ts @@ -85,9 +85,8 @@ const useProgramStore = create((set, get) => ({ const rootGoals = phase["goals"] as Record[]; const flatList: GoalWithDepth[] = []; - // Helper: Define this ONCE, outside the loop const isGoal = (item: Record) => { - return item["plan"] !== undefined && item["plan"] !== null; + return item["plan"] !== undefined; }; // Recursive helper function