diff --git a/app/api/leantime/tasks/route.ts b/app/api/leantime/tasks/route.ts index ff6442f7..e248b103 100644 --- a/app/api/leantime/tasks/route.ts +++ b/app/api/leantime/tasks/route.ts @@ -161,8 +161,8 @@ export async function GET(request: NextRequest) { const taskEditorId = String(task.editorId).trim(); const currentUserId = String(userId).trim(); - // Show tasks where the user is the editor or the task is unassigned - return taskEditorId === currentUserId || taskEditorId === ''; + // Only show tasks where the user is the editor + return taskEditorId === currentUserId; }) .map((task: any) => ({ id: task.id.toString(), diff --git a/components/flow.tsx b/components/flow.tsx index c5ca6e50..00d19c6f 100644 --- a/components/flow.tsx +++ b/components/flow.tsx @@ -129,7 +129,7 @@ export function Flow() { }); console.log('Sorted tasks:', sortedTasks); - setTasks(sortedTasks.slice(0, 6)); + setTasks(sortedTasks.slice(0, 7)); } catch (error) { console.error('Error fetching tasks:', error); setError(error instanceof Error ? error.message : 'Failed to fetch tasks');